Files
qt5/coin/provisioning/qtci-linux-openSUSE-15.6-x86_64/08-pythondev.sh
Allan Sandfeld Jensen 845bc18ba9 Add missing html5lib
Change-Id: I1f10e5772718222a006732c6bb11d793d2eb9624
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
(cherry picked from commit 74245b3b85)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2026-03-26 11:12:03 +00:00

28 lines
1.1 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"
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 brotli httpcompressionserver html5lib
python3.11 -m pip install -r "${BASH_SOURCE%/*}/../common/shared/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"
# 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.11"