[mozbuild] Make the $PYTHON3 build var use a venv instead of a raw python binary
Categories
(Firefox Build System :: General, task)
Tracking
(firefox73 fixed)
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: mars, Assigned: mars)
References
Details
Attachments
(1 file)
To port the build process and all of it's related scripts to Python 3 the $PYTHON3
build var should point to a Python binary inside a virtualenv just like the $PYTHON
build var does.
Once this is done build tasks that rely on libraries installed in the Python virtualenv can be switched to Python 3 by configuring them to use $PYTHON3
in instead of $PYTHON
.
See virtualenv_python()
in build/moz.configure/init.configure
for how the $PYTHON
build var and its virtualenv are created.
See python3()
in build/moz.configure/init.configure
for how the $PYTHON3
build var is set. It points to the raw python binary and carries no virtualenv with it.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Make the $PYTHON3 build var point to a full virtualenv bootstrapped with
the same libraries as the $PYTHON Python 2 build var. This allows us to
upgrade build tasks from $PYTHON to $PYTHON3.
The new virtualenv is given a name unique to the build process and
unique to the Python version so future upgrades of the build process
interpreter are decoupled from upgrades to the Python used to run mach.
This patch also adds some debug logging and documentation to the Python
2 virtualenv so that it is easier to diagnose issues that may arise
from running two different Python interpreters in re-entrant
multiprocess routines.
Updated•5 years ago
|
Pushed by mfogels@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3034ec8681ac Make the $PYTHON3 build var use a virtualenv r=mshal
Comment 3•5 years ago
|
||
bugherder |
Comment 4•4 years ago
|
||
Backed out from central: https://hg.mozilla.org/mozilla-central/rev/d1001fea6e4c66b98bb4983df49c6e47d2db5ceb
Comment 5•4 years ago
|
||
Backout from beta: https://hg.mozilla.org/releases/mozilla-beta/rev/a5748e4de94bcc3a88008bc8c1d0bda23f31a3dc
Assignee | ||
Comment 6•4 years ago
|
||
Landing this is blocked until we fix bug 1464038.
Pushed by mfogels@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a439caeaa0e1 Make the $PYTHON3 build var use a virtualenv r=mshal
Comment 8•4 years ago
|
||
bugherder |
Description
•