mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-17 09:46:08 +08:00
The pip3 install calls contained the word 'install' twice. Starting with newer pip versions, this seems to fail with: /Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user install virtualenv wheel html5lib ERROR: Could not find a version that satisfies the requirement install (from versions: none) ERROR: No matching distribution found for install Make sure install only appears once. Pick-to: 6.8 Change-Id: I1bfc784d4e3d6a1c34d112e72e2739678d2f07ae Reviewed-by: Ville-Pekka Karhu <ville-pekka.karhu@qt.io>
21 lines
676 B
Bash
Executable File
21 lines
676 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2021 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=../common/unix/SetEnvVar.sh
|
|
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
|
|
|
pyenv install 3.9.7
|
|
|
|
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user virtualenv wheel html5lib
|
|
|
|
SetEnvVar "PYTHON3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
|
SetEnvVar "PIP3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
|
# Use 3.9 as a default python
|
|
SetEnvVar "PATH" "\$PYTHON3_PATH:\$PATH"
|
|
|
|
echo "python3 = 3.9.7" >> ~/versions.txt
|