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

Revert pythong deps

parent a2fc045e
......@@ -21,7 +21,24 @@ 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()
}
}
}
......@@ -85,4 +102,4 @@ Project {
qbs.installSourceBase: path
}
}
}
}
\ No newline at end of file
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