зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1460475 - Port download-and-compress to Python 3; r=dustin
download-and-compress isn't very complicated and should work on Python 3 with minimal effort. So let's switch it to use Python 3. MozReview-Commit-ID: 9G1WfcbbKEY --HG-- extra : rebase_source : 3a6bab06c8500a90413e8b7642a7bf7bdff04a46
This commit is contained in:
Родитель
b104bdc7af
Коммит
99b6ca1c73
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python2.7
|
||||
#!/usr/bin/python3 -u
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
|
|
@ -9,15 +9,16 @@ apt-get update -y
|
|||
# Install dependencies
|
||||
apt-get install -y --no-install-recommends \
|
||||
socat \
|
||||
python-requests \
|
||||
python-requests-unixsocket \
|
||||
python3.5 \
|
||||
python3-minimal \
|
||||
python \
|
||||
python-requests \
|
||||
python-requests-unixsocket
|
||||
python3-requests \
|
||||
python3-requests-unixsocket
|
||||
|
||||
# Extra dependencies only needed for image building. Will be removed at
|
||||
# end of script.
|
||||
apt-get install -y python-pip
|
||||
apt-get install -y python-pip python3-pip
|
||||
|
||||
# Install mercurial
|
||||
# shellcheck disable=SC1091
|
||||
|
@ -49,11 +50,14 @@ tooltool_fetch <<EOF
|
|||
EOF
|
||||
)
|
||||
|
||||
# We need to install for both Python 2 and 3 because `mach taskcluster-load-image`
|
||||
# uses Python 2 and `download-and-compress` uses Python 3.
|
||||
/usr/bin/pip -v install /setup/zstandard-0.9.0.tar.gz
|
||||
/usr/bin/pip3 -v install /setup/zstandard-0.9.0.tar.gz
|
||||
|
||||
# python-pip only needed to install python-zstandard. Removing it removes
|
||||
# several hundred MB of dependencies from the image.
|
||||
apt-get purge -y python-pip
|
||||
apt-get purge -y python-pip python3-pip
|
||||
|
||||
# Purge apt-get caches to minimize image size
|
||||
apt-get auto-remove -y
|
||||
|
|
Загрузка…
Ссылка в новой задаче