2018-02-07 11:52:55 +00:00
|
|
|
#!/usr/bin/env bash
|
2023-05-12 14:24:22 +00:00
|
|
|
# Copyright (C) 2018 The Qt Company Ltd.
|
|
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
2018-02-07 11:52:55 +00:00
|
|
|
|
|
|
|
# This script installs python2
|
|
|
|
|
2018-04-03 07:28:29 +00:00
|
|
|
# shellcheck source=./InstallPKGFromURL.sh
|
2018-02-07 11:52:55 +00:00
|
|
|
source "${BASH_SOURCE%/*}/InstallPKGFromURL.sh"
|
2018-04-11 06:50:31 +00:00
|
|
|
# shellcheck source=../unix/SetEnvVar.sh
|
2018-02-07 11:52:55 +00:00
|
|
|
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
2018-04-03 07:28:29 +00:00
|
|
|
# shellcheck source=./pip.sh
|
|
|
|
source "${BASH_SOURCE%/*}/pip.sh"
|
2018-02-07 11:52:55 +00:00
|
|
|
|
2023-03-20 12:10:13 +00:00
|
|
|
PrimaryUrl="http://ci-files01-hki.ci.qt.io/input/mac/python-2.7.16-macosx10.6.pkg"
|
2019-04-08 09:54:40 +00:00
|
|
|
AltUrl="https://www.python.org/ftp/python/2.7.16/python-2.7.16-macosx10.6.pkg"
|
|
|
|
SHA1="895a8327a58e7c0e58852638ab3d84843643535b"
|
2018-02-07 11:52:55 +00:00
|
|
|
DestDir="/"
|
|
|
|
|
|
|
|
InstallPKGFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$DestDir"
|
|
|
|
|
2018-04-03 07:28:29 +00:00
|
|
|
InstallPip python2.7
|
|
|
|
|
2023-08-30 12:24:06 +00:00
|
|
|
echo "Configure pip"
|
|
|
|
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
|
|
|
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip config --user set global.extra-index-url https://pypi.org/simple/
|
|
|
|
|
2018-02-07 11:52:55 +00:00
|
|
|
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip install virtualenv
|
|
|
|
|
|
|
|
SetEnvVar "PATH" "/Library/Frameworks/Python.framework/Versions/2.7/bin/:\$PATH"
|
|
|
|
|
2019-04-08 09:54:40 +00:00
|
|
|
echo "python2 = 2.7.16" >> ~/versions.txt
|
2018-04-03 07:28:29 +00:00
|
|
|
|