mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-17 01:36:32 +08:00
Instead of relying on the qtbase coin instructions to compute the SBOM_PYTHON_APPS_PATH path based on the platform, which does not work reliably, especially when multiple python installations are present, explicitly specify the path in the provisioning scripts. Amends1f2fb6312cTask-number: QTBUG-122899 Task-number: QTBUG-124453 Task-number: QTBUG-125211 Change-Id: I097fd1c4119a203d82f88c477dbf0fc0f67f19f2 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit6f991b55a3)
25 lines
880 B
Bash
Executable File
25 lines
880 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2022 The Qt Company Ltd.
|
|
|
|
# provides: python development libraries
|
|
# version: provided by default Linux distribution repository
|
|
# needed to build pyside
|
|
|
|
set -ex
|
|
|
|
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
|
|
|
sudo zypper -nq install python-devel python-xml
|
|
|
|
# install python3
|
|
sudo zypper -nq install python311-base python311-devel python311-pip python311-virtualenv python311-wheel
|
|
python3.11 -m pip install selenium netifaces scache webdriver-manager
|
|
python3.11 -m pip install -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt"
|
|
|
|
SetEnvVar "PYTHON3_EXECUTABLE" "/usr/bin/python3.11"
|
|
|
|
# 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"
|