From 6a7d24469ae24019ff2eb0e82a7baf661b7ab5eb Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 7 Oct 2020 14:34:58 -0700 Subject: [PATCH] devops: fix firefox build (#4088) New firefox build requires a pre-created python virtual environment. We should detect it and create if necessary. References #3995 --- browser_patches/firefox/BUILD_NUMBER | 4 ++-- browser_patches/firefox/build.sh | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/browser_patches/firefox/BUILD_NUMBER b/browser_patches/firefox/BUILD_NUMBER index de95a94ced..4bdbc9bac8 100644 --- a/browser_patches/firefox/BUILD_NUMBER +++ b/browser_patches/firefox/BUILD_NUMBER @@ -1,2 +1,2 @@ -1187 -Changed: lushnikov@chromium.org Wed Oct 7 13:30:11 PDT 2020 +1188 +Changed: lushnikov@chromium.org Wed Oct 7 14:29:11 PDT 2020 diff --git a/browser_patches/firefox/build.sh b/browser_patches/firefox/build.sh index 09bd609477..9f2bb11d99 100755 --- a/browser_patches/firefox/build.sh +++ b/browser_patches/firefox/build.sh @@ -41,6 +41,10 @@ fi OBJ_FOLDER="obj-build-playwright" echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfig +if ! [[ -f "$HOME/.mozbuild/_virtualenvs/mach/bin/python" ]]; then + ./mach create-mach-environment +fi + if [[ $1 == "--juggler" ]]; then ./mach build faster else