diff --git a/coin/provisioning/common/windows/python3.ps1 b/coin/provisioning/common/windows/python3.ps1 index 13637c6c..1422fc5b 100644 --- a/coin/provisioning/common/windows/python3.ps1 +++ b/coin/provisioning/common/windows/python3.ps1 @@ -78,10 +78,17 @@ Run-Executable "$install_path\python.exe" "-m pip config --user set global.index Run-Executable "$install_path\python.exe" "-m pip config --user set global.extra-index-url https://pypi.org/simple/" Run-Executable "$install_path\Scripts\pip3.exe" "$pip_args install virtualenv wheel html5lib" -# Check if python version is higher than 3.8. +# Check if python version is higher than 3.10. # ntia-conformance-checker requires at least 3.8 -if ([version]::Parse($version) -gt [version]::Parse("3.8")) { +# reuse requires at least 3.9, to avoid conflict with installed conan jinja package, +# at least until we use virtual envs. +# 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" + # 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" } # Install PyPDF2 for QSR documentation