From 853fbfab2ab9ccce0131f47fa16cada665f46a75 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 9 Jan 2022 18:02:12 +0100 Subject: [PATCH] ci: install python with nuget in windows_build_definition job template --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7db8808a9..b7f5fa756 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -124,9 +124,8 @@ portable-source: # disable Windows Defender - Add-MpPreference -ExclusionPath 'C:\' - $PSDefaultParameterValues['Out-File:Encoding'] = 'utf8' - - choco config set cacheLocation choco-cache - - choco install --yes --no-progress --params "/InstallDir:C:\Python3" python3 - - $env:Path = "C:\Python3;" + $env:Path + - nuget install python -ExcludeVersion -OutputDirectory C:\ + - $env:Path = "C:\python\tools;" + $env:Path - python --version - python -m pip install --requirement requirements.txt # Toolchain definitions -- 2.40.0