mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
mach activate virtual env for bootstrap
This commit is contained in:
parent
2ad6e94091
commit
01978ccf32
1 changed files with 8 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue