Remove user/system site-packages from import path when running nativecmds
Categories
(Firefox Build System :: Mach Core, enhancement, P2)
Tracking
(firefox90 fixed)
Tracking | Status | |
---|---|---|
firefox90 | --- | fixed |
People
(Reporter: mhentges, Assigned: mhentges)
References
Details
Attachments
(1 file)
Including user/system site-packages allows failures when incompatible packages with the wrong versions are on the import path, such as for bug 1702377.
This only affects mach nativecmds
, because regular mach commands only have access to their associated virtualenv.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
To avoid erroneously importing a package from the system, we remove
system site package.
This is another positive step towards further insulating the Firefox
build from the state of the environment.
This may cause failures if some mach commands have been sneakily
importing system packages instead of properly vendoring them.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Pushed by mhentges@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/189b85571855 Don't include global site packages in python path r=firefox-build-system-reviewers,glandium,sheehan
Comment 3•3 years ago
|
||
bugherder |
Comment 4•3 years ago
|
||
Backed out for syntax failure (bug 1704838):
https://hg.mozilla.org/mozilla-central/rev/800d0896c6cd6d582c19ca29b0b5a14776cd1ec3
Assignee | ||
Comment 5•3 years ago
|
||
Patch to resolve this is ready in Phabricator.
I'll land this again after the code freeze.
Pushed by mhentges@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d4d3ba582763 Don't include global site packages in python path r=firefox-build-system-reviewers,glandium,sheehan
Comment 7•3 years ago
|
||
bugherder |
Description
•