mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.5 6.6 Task-number: QTBUG-67283 Task-number: QTBUG-108364 Change-Id: If26e4d35c780db4a7982bb84872b251dad24716e Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
37 lines
1.4 KiB
Bash
Executable File
37 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2019 The Qt Company Ltd.
|
|
# Copyright (C) 2017 Pelagicore AG
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
# This script installs python3
|
|
|
|
# shellcheck source=./InstallPKGFromURL.sh
|
|
source "${BASH_SOURCE%/*}/InstallPKGFromURL.sh"
|
|
# shellcheck source=../unix/SetEnvVar.sh
|
|
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
|
# shellcheck source=./pip.sh
|
|
source "${BASH_SOURCE%/*}/pip.sh"
|
|
|
|
PrimaryUrl="http://ci-files01-hki.ci.qt.io/input/mac/python-3.9.6-macos11.pkg"
|
|
AltUrl="https://www.python.org/ftp/python/3.9.6/python-3.9.6-macos11.pkg"
|
|
SHA1="2af5277c2e197719eb4b820430dee5d89e2577b6"
|
|
DestDir="/"
|
|
|
|
InstallPKGFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$DestDir"
|
|
|
|
InstallPip python3.9
|
|
|
|
/Library/Frameworks/Python.framework/Versions/3.9/bin/pip3 install virtualenv wheel html5lib
|
|
|
|
SetEnvVar "PYTHON3_PATH" "/Library/Frameworks/Python.framework/Versions/3.9/bin"
|
|
SetEnvVar "PIP3_PATH" "/Library/Frameworks/Python.framework/Versions/3.9/bin"
|
|
|
|
# Install all needed packages in a special wheel cache directory
|
|
/Library/Frameworks/Python.framework/Versions/3.9/bin/pip3 wheel --wheel-dir $HOME/python3-wheels -r ${BASH_SOURCE%/*}/../shared/requirements.txt
|
|
SetEnvVar "PYTHON3_WHEEL_CACHE" "$HOME/python3-wheels"
|
|
|
|
# Install Python certificates. Required at least for emsdk installation
|
|
open /Applications/Python\ 3.9/Install\ Certificates.command
|
|
|
|
echo "python3 = 3.9.6" >> ~/versions.txt
|