mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-25 22:27:49 +08:00
Pick-to: 6.10 6.8 6.5
Task-number: QTQAINFRA-7709
Change-Id: Ia8802cc2c5e7fb8ed63e261f70fb343cd55a1dfa
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
(cherry picked from commit 0ab91c0886)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
26 lines
1.0 KiB
Bash
Executable File
26 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2024 The Qt Company Ltd.
|
|
|
|
# provides: python development libraries
|
|
# version: provided by default Linux distribution repository
|
|
# needed to build pyside and emsdk for WebAssembly
|
|
|
|
set -ex
|
|
|
|
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
|
|
|
# install python3
|
|
sudo zypper -nq install python313-base python313-devel python313-pip python313-virtualenv python313-wheel libexpat1>=2.7.1-160000.3.1
|
|
python3.13 -m pip install selenium netifaces scache brotli httpcompressionserver
|
|
python3.13 -m pip install -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt"
|
|
|
|
SetEnvVar "PYTHON3_EXECUTABLE" "/usr/bin/python3.13"
|
|
|
|
# Provisioning during installation says:
|
|
# 'Defaulting to user installation because normal site-packages is not writeable'
|
|
# So it implicitly uses pip install --user, hence the path.
|
|
SetEnvVar "SBOM_PYTHON_APPS_PATH" "/home/qt/.local/bin"
|
|
|
|
# Set SBOM_PYTHON_INTERP_PATH to Python3 instance which was used to install SBOM packages from requirements
|
|
SetEnvVar "SBOM_PYTHON_INTERP_PATH" "/usr/bin/python3.13"
|