mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
macos: wpt: install pip & virtualenv for Python3
This commit is contained in:
parent
43768ff974
commit
c48934a24f
2 changed files with 7 additions and 1 deletions
|
@ -658,7 +658,7 @@ def macos_wpt():
|
||||||
priority = "high" if CONFIG.git_ref == "refs/heads/auto" else None
|
priority = "high" if CONFIG.git_ref == "refs/heads/auto" else None
|
||||||
build_task = macos_release_build_with_debug_assertions(priority=priority)
|
build_task = macos_release_build_with_debug_assertions(priority=priority)
|
||||||
def macos_run_task(name):
|
def macos_run_task(name):
|
||||||
task = macos_task(name).with_python2() \
|
task = macos_task(name).with_python2().with_python3() \
|
||||||
.with_repo_bundle(alternate_object_dir="/var/cache/servo.git/objects")
|
.with_repo_bundle(alternate_object_dir="/var/cache/servo.git/objects")
|
||||||
return with_homebrew(task, ["etc/taskcluster/macos/Brewfile"])
|
return with_homebrew(task, ["etc/taskcluster/macos/Brewfile"])
|
||||||
wpt_chunks(
|
wpt_chunks(
|
||||||
|
|
|
@ -693,6 +693,12 @@ class MacOsGenericWorkerTask(UnixTaskMixin, GenericWorkerTask):
|
||||||
pip install --user virtualenv
|
pip install --user virtualenv
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
def with_python3(self):
|
||||||
|
return self.with_early_script("""
|
||||||
|
python3 -m ensurepip --user
|
||||||
|
python3 -m pip install --user virtualenv
|
||||||
|
""")
|
||||||
|
|
||||||
def with_rustup(self):
|
def with_rustup(self):
|
||||||
return self.with_early_script("""
|
return self.with_early_script("""
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue