Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Dekko Project
ubports-ui-plugin
Commits
f4f8ff83
Commit
f4f8ff83
authored
Dec 28, 2018
by
Dan Chapman
Browse files
Revert pythong deps
parent
a2fc045e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
plugins/extensions/Python/python.qbs
plugins/extensions/Python/python.qbs
+19
-2
No files found.
plugins/extensions/Python/python.qbs
View file @
f4f8ff83
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment