diff options
author | Josh Mcguigan <joshmcg88@gmail.com> | 2019-10-28 04:58:28 -0700 |
---|---|---|
committer | Josh Mcguigan <joshmcg88@gmail.com> | 2019-10-28 04:58:28 -0700 |
commit | 01978ccf32e06c7f285365abc511e3b8d6975ebb (patch) | |
tree | 1a0eb64f90d1e5eef56fe56bd3d646516380045c /python | |
parent | 2ad6e940913972620eab6c45a3fe2ace3c2c88f0 (diff) | |
download | servo-01978ccf32e06c7f285365abc511e3b8d6975ebb.tar.gz servo-01978ccf32e06c7f285365abc511e3b8d6975ebb.zip |
mach activate virtual env for bootstrap
Diffstat (limited to 'python')
-rw-r--r-- | python/mach_bootstrap.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/mach_bootstrap.py b/python/mach_bootstrap.py index ec506c881a6..9b36d3fec31 100644 --- a/python/mach_bootstrap.py +++ b/python/mach_bootstrap.py @@ -224,6 +224,14 @@ class DummyContext(object): def bootstrap_command_only(topdir): + # See if we're inside a Firefox checkout. + parentdir = os.path.normpath(os.path.join(topdir, '..')) + is_firefox = os.path.isfile(os.path.join(parentdir, + 'build/mach_bootstrap.py')) + # we should activate the venv before importing servo.boostrap + # because the module requires non-standard python packages + _activate_virtualenv(topdir, is_firefox) + from servo.bootstrap import bootstrap context = DummyContext() |