Bug 1731158 - Allow initializing mach from a Thunderbird source repo. r=firefox-build-system-reviewers,mhentges

mach will initialize from comm/build/mach_initialize.py if it's present.
See bug 1731160. The initialization function wraps the one in build/mach_initialize.py,
then extends sys.path and loads more mach_commands.py files

Differential Revision: https://phabricator.services.mozilla.com/D131869
This commit is contained in:
Rob Lemley 2021-11-29 18:34:58 +00:00
parent f9fa2783ad
commit 3b62e0f6b3
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,3 @@
thunderbird-packages.txt:comm/build/virtualenv_packages.txt
pth:build
pth:config
pth:config/mozunit

2
mach
View File

@ -93,6 +93,8 @@ def load_mach(dir_path, mach_path):
def check_and_get_mach(dir_path):
initialize_paths = (
# Run Thunderbird's mach_initialize.py if it exists
'comm/build/mach_initialize.py',
'build/mach_initialize.py',
# test package initialize
'tools/mach_initialize.py',