macos: wpt: install pip & virtualenv for Python3

This commit is contained in:
wpt-pr-bot 2020-01-25 21:07:17 +00:00
parent 43768ff974
commit c48934a24f
2 changed files with 7 additions and 1 deletions

View file

@ -658,7 +658,7 @@ def macos_wpt():
priority = "high" if CONFIG.git_ref == "refs/heads/auto" else None
build_task = macos_release_build_with_debug_assertions(priority=priority)
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")
return with_homebrew(task, ["etc/taskcluster/macos/Brewfile"])
wpt_chunks(

View file

@ -693,6 +693,12 @@ class MacOsGenericWorkerTask(UnixTaskMixin, GenericWorkerTask):
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):
return self.with_early_script("""
export PATH="$HOME/.cargo/bin:$PATH"