mirror of https://github.com/qt/qt5.git
Add an overall requirements.txt file
This allows to more easily expand python packages Change-Id: I86dd14cb2f38989ee1b4efdac1089f573f1d6307 Reviewed-by: Simo Fält <simo.falt@qt.io>
This commit is contained in:
parent
9f6b61e3fa
commit
5628f067e4
|
@ -24,7 +24,7 @@ echo "Configure pip"
|
||||||
/Library/Frameworks/Python.framework/Versions/3.11/bin/pip3 config --user set global.extra-index-url https://pypi.org/simple/
|
/Library/Frameworks/Python.framework/Versions/3.11/bin/pip3 config --user set global.extra-index-url https://pypi.org/simple/
|
||||||
|
|
||||||
/Library/Frameworks/Python.framework/Versions/3.11/bin/pip3 install virtualenv wheel html5lib
|
/Library/Frameworks/Python.framework/Versions/3.11/bin/pip3 install virtualenv wheel html5lib
|
||||||
/Library/Frameworks/Python.framework/Versions/3.11/bin/pip3 install -r ${BASH_SOURCE%/*}/../shared/sbom_requirements.txt
|
/Library/Frameworks/Python.framework/Versions/3.11/bin/pip3 install -r ${BASH_SOURCE%/*}/../shared/requirements.txt
|
||||||
|
|
||||||
SetEnvVar "PYTHON3_PATH" "/Library/Frameworks/Python.framework/Versions/3.11/bin"
|
SetEnvVar "PYTHON3_PATH" "/Library/Frameworks/Python.framework/Versions/3.11/bin"
|
||||||
SetEnvVar "PIP3_PATH" "/Library/Frameworks/Python.framework/Versions/3.11/bin"
|
SetEnvVar "PIP3_PATH" "/Library/Frameworks/Python.framework/Versions/3.11/bin"
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Requirements for running sbom
|
||||||
|
-r sbom_requirements.txt
|
|
@ -85,7 +85,7 @@ Run-Executable "$install_path\Scripts\pip3.exe" "$pip_args install virtualenv wh
|
||||||
# The lowest version available on all windows platforms that we currently run on that satisfies
|
# The lowest version available on all windows platforms that we currently run on that satisfies
|
||||||
# these requirements is 3.10.
|
# these requirements is 3.10.
|
||||||
if ([version]::Parse($version) -gt [version]::Parse("3.10")) {
|
if ([version]::Parse($version) -gt [version]::Parse("3.10")) {
|
||||||
Run-Executable "$install_path\Scripts\pip3.exe" "$pip_args install -r $PSScriptRoot\..\shared\sbom_requirements.txt"
|
Run-Executable "$install_path\Scripts\pip3.exe" "$pip_args install -r $PSScriptRoot\..\shared\requirements.txt"
|
||||||
# Set the environment variable for the build system to know which python path to use for SBOM
|
# Set the environment variable for the build system to know which python path to use for SBOM
|
||||||
# processing.
|
# processing.
|
||||||
Set-EnvironmentVariable "SBOM_PYTHON_APPS_PATH" "$install_path\Scripts"
|
Set-EnvironmentVariable "SBOM_PYTHON_APPS_PATH" "$install_path\Scripts"
|
||||||
|
|
|
@ -260,7 +260,7 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y install cmake apt-cacher-ng -t
|
||||||
# Disable keyring password prompt
|
# Disable keyring password prompt
|
||||||
keyring --disable
|
keyring --disable
|
||||||
|
|
||||||
pip install --user -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt"
|
pip install --user -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt"
|
||||||
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
||||||
|
|
||||||
|
|
|
@ -171,7 +171,7 @@ sudo pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||||
|
|
||||||
sudo pip3 install virtualenv wheel
|
sudo pip3 install virtualenv wheel
|
||||||
sudo python3.11 -m pip install virtualenv wheel html5lib
|
sudo python3.11 -m pip install virtualenv wheel html5lib
|
||||||
sudo python3.11 -m pip install -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt"
|
sudo python3.11 -m pip install -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt"
|
||||||
# For now we don't set QT_SBOM_PYTHON_APPS_PATH here, and rely on the build system to find the
|
# For now we don't set QT_SBOM_PYTHON_APPS_PATH here, and rely on the build system to find the
|
||||||
# system python3.11.
|
# system python3.11.
|
||||||
|
|
||||||
|
|
|
@ -171,7 +171,7 @@ sudo pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||||
sudo pip3 install virtualenv wheel
|
sudo pip3 install virtualenv wheel
|
||||||
# Just make sure we have virtualenv to run with python3.8 -m virtualenv
|
# Just make sure we have virtualenv to run with python3.8 -m virtualenv
|
||||||
sudo python3.11 -m pip install virtualenv wheel
|
sudo python3.11 -m pip install virtualenv wheel
|
||||||
sudo python3.11 -m pip install -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt"
|
sudo python3.11 -m pip install -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt"
|
||||||
# For now we don't set QT_SBOM_PYTHON_APPS_PATH here, and rely on the build system to find the
|
# For now we don't set QT_SBOM_PYTHON_APPS_PATH here, and rely on the build system to find the
|
||||||
# system python3.11.
|
# system python3.11.
|
||||||
|
|
||||||
|
|
|
@ -186,10 +186,10 @@ sudo pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||||
sudo pip3 install virtualenv wheel
|
sudo pip3 install virtualenv wheel
|
||||||
# Just make sure we have virtualenv to run with python3.8 -m virtualenv
|
# Just make sure we have virtualenv to run with python3.8 -m virtualenv
|
||||||
sudo python -m pip install virtualenv wheel
|
sudo python -m pip install virtualenv wheel
|
||||||
sudo python -m pip install -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt"
|
sudo python -m pip install -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt"
|
||||||
|
|
||||||
sudo /usr/bin/pip3 install wheel
|
sudo /usr/bin/pip3 install wheel
|
||||||
sudo /usr/bin/pip3 install -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt"
|
sudo /usr/bin/pip3 install -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt"
|
||||||
|
|
||||||
# Provisioning during installation says:
|
# Provisioning during installation says:
|
||||||
# 'The script sbom2doc is installed in '/usr/local/bin' which is not on PATH.'
|
# 'The script sbom2doc is installed in '/usr/local/bin' which is not on PATH.'
|
||||||
|
|
|
@ -188,10 +188,10 @@ sudo pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||||
sudo pip3 install virtualenv wheel
|
sudo pip3 install virtualenv wheel
|
||||||
# Just make sure we have virtualenv to run with python3.8 -m virtualenv
|
# Just make sure we have virtualenv to run with python3.8 -m virtualenv
|
||||||
sudo python -m pip install virtualenv wheel
|
sudo python -m pip install virtualenv wheel
|
||||||
sudo python -m pip install -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt"
|
sudo python -m pip install -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt"
|
||||||
|
|
||||||
sudo /usr/bin/pip3 install wheel
|
sudo /usr/bin/pip3 install wheel
|
||||||
sudo /usr/bin/pip3 install -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt"
|
sudo /usr/bin/pip3 install -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt"
|
||||||
|
|
||||||
# Provisioning during installation says:
|
# Provisioning during installation says:
|
||||||
# 'The script sbom2doc is installed in '/usr/local/bin' which is not on PATH.'
|
# 'The script sbom2doc is installed in '/usr/local/bin' which is not on PATH.'
|
||||||
|
|
|
@ -71,7 +71,7 @@ python3 --version | grep -F "$python3Version"
|
||||||
|
|
||||||
pip3 install --user wheel
|
pip3 install --user wheel
|
||||||
pip3 install --user virtualenv
|
pip3 install --user virtualenv
|
||||||
pip3 install --user -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt"
|
pip3 install --user -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt"
|
||||||
|
|
||||||
# shellcheck source=../common/unix/SetEnvVar.sh
|
# shellcheck source=../common/unix/SetEnvVar.sh
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
||||||
|
|
|
@ -71,7 +71,7 @@ python3 --version | grep -F "$python3Version"
|
||||||
|
|
||||||
pip3 install --user wheel
|
pip3 install --user wheel
|
||||||
pip3 install --user virtualenv
|
pip3 install --user virtualenv
|
||||||
pip3 install --user -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt"
|
pip3 install --user -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt"
|
||||||
|
|
||||||
# shellcheck source=../common/unix/SetEnvVar.sh
|
# shellcheck source=../common/unix/SetEnvVar.sh
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
||||||
|
|
|
@ -255,7 +255,7 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y -o DPkg::Lock::Timeout=300 ins
|
||||||
# Configure pip
|
# Configure pip
|
||||||
pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_module_cache
|
||||||
pip config --user set global.extra-index-url https://pypi.org/simple/
|
pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||||
pip install --user -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt"
|
pip install --user -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt"
|
||||||
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
||||||
# SetEnvVar "PATH" "/usr/lib/nodejs-mozilla/bin:\$PATH"
|
# SetEnvVar "PATH" "/usr/lib/nodejs-mozilla/bin:\$PATH"
|
||||||
|
|
|
@ -250,7 +250,7 @@ pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_
|
||||||
pip config --user set global.extra-index-url https://pypi.org/simple/
|
pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||||
# Ubuntu 24.04 comes with a newer pip that disallows installing into the system site-packages,
|
# Ubuntu 24.04 comes with a newer pip that disallows installing into the system site-packages,
|
||||||
# so we explicitly ask it to allow it.
|
# so we explicitly ask it to allow it.
|
||||||
pip install --user -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt" --break-system-packages
|
pip install --user -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt" --break-system-packages
|
||||||
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
||||||
# SetEnvVar "PATH" "/usr/lib/nodejs-mozilla/bin:\$PATH"
|
# SetEnvVar "PATH" "/usr/lib/nodejs-mozilla/bin:\$PATH"
|
||||||
|
|
|
@ -261,7 +261,7 @@ pip config --user set global.index https://ci-files01-hki.ci.qt.io/input/python_
|
||||||
pip config --user set global.extra-index-url https://pypi.org/simple/
|
pip config --user set global.extra-index-url https://pypi.org/simple/
|
||||||
# Ubuntu 24.04 comes with a newer pip that disallows installing into the system site-packages,
|
# Ubuntu 24.04 comes with a newer pip that disallows installing into the system site-packages,
|
||||||
# so we explicitly ask it to allow it.
|
# so we explicitly ask it to allow it.
|
||||||
pip install --user -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt" --break-system-packages
|
pip install --user -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt" --break-system-packages
|
||||||
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
||||||
# SetEnvVar "PATH" "/usr/lib/nodejs-mozilla/bin:\$PATH"
|
# SetEnvVar "PATH" "/usr/lib/nodejs-mozilla/bin:\$PATH"
|
||||||
|
|
|
@ -14,7 +14,7 @@ sudo zypper -nq install python-devel python-xml
|
||||||
# install python3
|
# install python3
|
||||||
sudo zypper -nq install python311-base python311-devel python311-pip python311-virtualenv python311-wheel
|
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 selenium netifaces scache
|
||||||
python3.11 -m pip install -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt"
|
python3.11 -m pip install -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt"
|
||||||
|
|
||||||
SetEnvVar "PYTHON3_EXECUTABLE" "/usr/bin/python3.11"
|
SetEnvVar "PYTHON3_EXECUTABLE" "/usr/bin/python3.11"
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ sudo zypper -nq install python-devel python-xml
|
||||||
# install python3
|
# install python3
|
||||||
sudo zypper -nq install python311-base python311-devel python311-pip python311-virtualenv python311-wheel
|
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 selenium netifaces scache
|
||||||
python3.11 -m pip install -r "${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt"
|
python3.11 -m pip install -r "${BASH_SOURCE%/*}/../common/shared/requirements.txt"
|
||||||
|
|
||||||
SetEnvVar "PYTHON3_EXECUTABLE" "/usr/bin/python3.11"
|
SetEnvVar "PYTHON3_EXECUTABLE" "/usr/bin/python3.11"
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
||||||
pyenv install 3.9.7
|
pyenv install 3.9.7
|
||||||
|
|
||||||
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user virtualenv wheel html5lib
|
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user virtualenv wheel html5lib
|
||||||
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user -r ${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt
|
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user -r ${BASH_SOURCE%/*}/../common/shared/requirements.txt
|
||||||
|
|
||||||
SetEnvVar "PYTHON3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
SetEnvVar "PYTHON3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
||||||
SetEnvVar "PIP3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
SetEnvVar "PIP3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
||||||
|
|
|
@ -11,7 +11,7 @@ source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
||||||
pyenv install 3.9.7
|
pyenv install 3.9.7
|
||||||
|
|
||||||
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user virtualenv wheel html5lib
|
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user virtualenv wheel html5lib
|
||||||
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user -r ${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt
|
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user -r ${BASH_SOURCE%/*}/../common/shared/requirements.txt
|
||||||
|
|
||||||
SetEnvVar "PYTHON3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
SetEnvVar "PYTHON3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
||||||
SetEnvVar "PIP3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
SetEnvVar "PIP3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
||||||
|
|
|
@ -11,7 +11,7 @@ source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
||||||
pyenv install 3.9.7
|
pyenv install 3.9.7
|
||||||
|
|
||||||
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user virtualenv wheel html5lib
|
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user virtualenv wheel html5lib
|
||||||
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user -r ${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt
|
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user -r ${BASH_SOURCE%/*}/../common/shared/requirements.txt
|
||||||
|
|
||||||
SetEnvVar "PYTHON3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
SetEnvVar "PYTHON3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
||||||
SetEnvVar "PIP3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
SetEnvVar "PIP3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
||||||
|
|
|
@ -11,7 +11,7 @@ source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
||||||
pyenv install 3.9.7
|
pyenv install 3.9.7
|
||||||
|
|
||||||
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user virtualenv wheel html5lib
|
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user virtualenv wheel html5lib
|
||||||
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user -r ${BASH_SOURCE%/*}/../common/shared/sbom_requirements.txt
|
/Users/qt/.pyenv/versions/3.9.7/bin/pip3 install --user -r ${BASH_SOURCE%/*}/../common/shared/requirements.txt
|
||||||
|
|
||||||
SetEnvVar "PYTHON3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
SetEnvVar "PYTHON3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
||||||
SetEnvVar "PIP3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
SetEnvVar "PIP3_PATH" "/Users/qt/.pyenv/versions/3.9.7/bin/"
|
||||||
|
|
Loading…
Reference in New Issue