Commit beb5d646 authored by Dan Chapman's avatar Dan Chapman
Browse files

Disable pip3 runs

parent d4dbb0d3
......@@ -21,24 +21,7 @@ Project {
property string sourceDir: project.sourceDirectory + "/pylibs"
configure: {
if (!requirementsFile.length) {
return
}
// we use the Process service to run pip3
var p = new Process();
try {
p.setWorkingDirectory(path)
// override pip's idea of --user location
p.setEnv("PYTHONUSERBASE", sourceDir)
// Finally run pip
if (p.exec("/usr/bin/pip3", ["install", "-r", requirementsFile, "--user"] , true) === 0) {
installed = true
} else {
throw "Pip Not working"
}
} finally {
p.close()
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment