chore: fix WebKit ubuntu 18.04 build (#16133)
Install Python 3.8 on Ubuntu 18.04 for Firefox only.
This commit is contained in:
parent
a22446658c
commit
38726fe319
|
|
@ -138,14 +138,15 @@ function ensure_docker_container {
|
||||||
zip \
|
zip \
|
||||||
unzip
|
unzip
|
||||||
|
|
||||||
|
# We will use clang-12 for all arm64 native builds.
|
||||||
if [[ "${BUILD_FLAVOR}" == *"-arm64" ]]; then
|
if [[ "${BUILD_FLAVOR}" == *"-arm64" ]]; then
|
||||||
apt-get install -y clang-12
|
apt-get install -y clang-12
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ubuntu 18 installs Python 3.6 as Python3 by default; this, however,
|
# Firefox build on Ubuntu 18.04 requires Python3.8 to run its build scripts.
|
||||||
# fails to run Firefox build scripts.
|
# WebKit build on Ubuntu 18.04 fails with the Python 3.8 installation but works
|
||||||
# Install Python3.8 instead on Ubuntu 18.04 as Python3.
|
# with Python 3.6 that is shipped as default python3 on Ubuntu 18.
|
||||||
if [[ "${BUILD_FLAVOR}" == *ubuntu-18.04* ]]; then
|
if [[ "${BUILD_FLAVOR}" == "firefox-ubuntu-18.04" ]]; then
|
||||||
apt-get install -y python3.8 python3.8-dev python3.8-distutils
|
apt-get install -y python3.8 python3.8-dev python3.8-distutils
|
||||||
# Point python3 to python3.8
|
# Point python3 to python3.8
|
||||||
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
|
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue