mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-25 14:17:50 +08:00
Emscripten 4.0.7 requires Python +3.8, OpenSUSE does have Python 3.11
but its path is only set to PYTHON3_EXECUTABLE envvar defined in
08-pythondev.sh.
OpenSUSE 15.6 comes with Python 3.6.15 which the previous emscripten
3.1.70 used.
Change-Id: Ied63ace32b7fb252d124ad447bc56dba353ff403
Reviewed-by: Lorn Potter <lorn.potter@qt.io>
(cherry picked from commit 7471b6b6d2)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
25 lines
883 B
Bash
25 lines
883 B
Bash
#!/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
|
|
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"
|