diff options
author | wpt-pr-bot <wpt-pr-bot@users.noreply.github.com> | 2020-01-25 21:07:17 +0000 |
---|---|---|
committer | wpt-pr-bot <wpt-pr-bot@users.noreply.github.com> | 2020-01-25 21:07:58 +0000 |
commit | c48934a24f032c44fc85dad886a03f28292466ed (patch) | |
tree | 2348d2e6cd547da0021cd6f78c32f27d8c5df296 | |
parent | 43768ff9743df04f1af4bfd1b53ce8d64a875e83 (diff) | |
download | servo-c48934a24f032c44fc85dad886a03f28292466ed.tar.gz servo-c48934a24f032c44fc85dad886a03f28292466ed.zip |
macos: wpt: install pip & virtualenv for Python3
-rw-r--r-- | etc/taskcluster/decision_task.py | 2 | ||||
-rw-r--r-- | etc/taskcluster/decisionlib.py | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/etc/taskcluster/decision_task.py b/etc/taskcluster/decision_task.py index 1052702bf44..afa83cc4c1b 100644 --- a/etc/taskcluster/decision_task.py +++ b/etc/taskcluster/decision_task.py @@ -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( diff --git a/etc/taskcluster/decisionlib.py b/etc/taskcluster/decisionlib.py index c1c9aaadf60..ecbdc54cfe8 100644 --- a/etc/taskcluster/decisionlib.py +++ b/etc/taskcluster/decisionlib.py @@ -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" |