Skip to content

Commit d3434e7

Browse files
Merge pull request #20 from wsteimel77/normalise_path
Normalise path for building on windows
2 parents a520568 + dd8ad23 commit d3434e7

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const Fse = require('fs-extra');
66
const Path = require('path');
77
const ChildProcess = require('child_process');
88
const zipper = require('zip-local');
9+
const upath = require('upath');
910

1011
BbPromise.promisifyAll(Fse);
1112

@@ -74,7 +75,7 @@ class PkgPyFuncs {
7475
}
7576

7677
let cmd = 'pip'
77-
let args = ['install','--upgrade','-t', buildPath, '-r', requirementsPath]
78+
let args = ['install','--upgrade','-t', upath.normalize(buildPath), '-r', upath.normalize(requirementsPath)]
7879
if ( this.useDocker === true ){
7980
cmd = 'docker'
8081
args = ['exec',this.containerName, 'pip', ...args]

package-lock.json

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"bluebird": "^3.5.0",
1111
"fs-extra": "^3.0.0",
1212
"lodash": "^4.17.4",
13+
"upath": "^1.0.0",
1314
"zip-local": "^0.3.4"
1415
},
1516
"repository": {

0 commit comments

Comments
 (0)