mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-18 02:56:07 +08:00
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:
@@ -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 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 "PIP3_PATH" "/Library/Frameworks/Python.framework/Versions/3.11/bin"
|
||||
|
||||
2
coin/provisioning/common/shared/requirements.txt
Normal file
2
coin/provisioning/common/shared/requirements.txt
Normal file
@@ -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
|
||||
# these requirements is 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
|
||||
# processing.
|
||||
Set-EnvironmentVariable "SBOM_PYTHON_APPS_PATH" "$install_path\Scripts"
|
||||
|
||||
Reference in New Issue
Block a user