Allow invoking Mach outside of MozillaBuild
Categories
(Firefox Build System :: Mach Core, enhancement, P3)
Tracking
(firefox97 fixed)
Tracking | Status | |
---|---|---|
firefox97 | --- | fixed |
People
(Reporter: mhentges, Assigned: mhentges)
References
Details
Attachments
(2 files)
(this is a discussion ticket about a potential future for MozillaBuild).
The Firefox build depends on Linux-y tools (bash
, perl
, awk
(I believe), etc).
Currently, these are provided in a MozillaBuild package (a little Mozilla-managed MSYS environment) that Windows devs manually install and keep up-to-date.
To work on Firefox, devs must use the MozillaBuild developer shell to interact with Mach.
This ticket proposes that Mach is changed to allow any shell to invoke Mach, so long as Mach is informed where $MOZILLABUILD
is.
- For example, from Powershell, you'd run the top-level
mach
file with Python directly - This means that Python will no longer (necessarily) run from a MSYS-y context (
C:\...
instead of/c/...
) - This also would allow flexibility in choosing which Python version to run.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
Assuming that the MOZILLABUILD
environment variable is set, allow
invoking Mach from non-MozillaBuild terminals.
Note that MozillaBuild still needs to be installed, and the
MOZILLABUILD
environment variable will have to be set.
For future reference: when I tried setting this up with Windows
Store's Python 3.9, I encountered issues when running binaries installed
via pip
: it would fail with abort: failed to load Python DLL python3x.dll
.
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
Move Python version check as early as possible so that more code can
safely depend on modern behaviour while out-of-date Python version still
get graceful error messages.
Without this change, Python 2 usages fail on importing importlib.util
before the nice warning is printed.
Depends on D133928
Comment 5•3 years ago
|
||
Backed out 2 changesets (Bug 1725895, Bug 1740123) for causing build bustages.
Backout link
Push with failures
Failure Log
Assignee | ||
Updated•3 years ago
|
Comment 7•3 years ago
|
||
bugherder |
Assignee | ||
Comment 8•3 years ago
|
||
Need one more patch to land.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 10•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Assignee | ||
Comment 11•3 years ago
|
||
For future readers of this bug, the docs for setting this up are available over here. Have fun!
Description
•