Opened 4 years ago
Closed 3 years ago
#15405 closed enhancement (fixed)
Firefox-91 and thunderbird: replace create-mach-environment
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Milestone: | 11.0 |
| Component: | BOOK | Version: | git |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Joe Locash told me that create-mach-environment downloads packages, and therefore prevents him compiling firefox while he is offline. Instead, he exports MACH_USE_SYSTEM_PYTHON=1 and similarly prepends that to the install.
I had assumed that using this would download into the system python using pip.
In a build with create-mach-environment the relevant lines of my log are:
created virtual environment CPython3.9.6.final.0-64 in 136ms
creator CPython3Posix(dest=/scratch/working/firefox-91.0/mozbuild/_virtualenvs/mach, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
added seed packages: pip==20.3.1, setuptools==51.0.0, wheel==0.36.1
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Collecting psutil==5.8.0
Downloading psutil-5.8.0-cp39-cp39-manylinux2010_x86_64.whl (293 kB)
Installing collected packages: psutil
Successfully installed psutil-5.8.0
Collecting zstandard==0.15.2
Downloading zstandard-0.15.2-cp39-cp39-manylinux2014_x86_64.whl (2.2 MB)
Installing collected packages: zstandard
Successfully installed zstandard-0.15.2
Collecting appdirs==1.4.4
Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting attrs==20.3.0
Downloading attrs-20.3.0-py2.py3-none-any.whl (49 kB)
Collecting cffi==1.14.4
Downloading cffi-1.14.4-cp39-cp39-manylinux1_x86_64.whl (405 kB)
Collecting click==7.1.2
Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
and a lot more of the same.
Using MACH_USE_SYSTEM_PYTHON=1 the relevant lines are:
0:00.39 /usr/bin/python3 /scratch/working/firefox-91.0/configure.py 0:00.48 Creating Python 3 environment 0:00.75 created virtual environment CPython3.9.6.final.0-64 in 142ms 0:00.75 creator CPython3Posix(dest=/scratch/working/firefox-91.0/firefox-build-dir/_virtualenvs/common, clear=False, no_vcs_ignore=False, global=False) 0:00.75 seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv) 0:00.75 added seed packages: pip==20.3.1, setuptools==51.0.0, wheel==0.36.1 0:00.75 activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator 0:00.82 Re-executing in the virtualenv
with no downloads.
Change History (5)
comment:1 by , 4 years ago
comment:3 by , 4 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:4 by , 3 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
Looking at thunderbird-91.11.0 build candidate re whether or not llvm will build faster than g++-12, I was surprised to see create-mach-environment creating wheels. Looking at this, although I added MACH_USE_SYSTEM_PYTHON=1 to both firefox and thunderbird I only removed create-mach-environment from firefox.
Removing it now from thunderbird.
comment:5 by , 3 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Thunderbird fixed in c573eb2aa872cc24394069f86388786d09cfe97f 11.1-709

Thunderbird also builds with these settigns.