]> granicus.if.org Git - graphviz/commitdiff
ci: install python with nuget in windows_build_definition job template
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 9 Jan 2022 17:02:12 +0000 (18:02 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 10 Jan 2022 16:13:56 +0000 (17:13 +0100)
.gitlab-ci.yml

index 7db8808a947a799941981e559df301c5fc765ff8..b7f5fa756d0341d73557bf764303628f4d2704fd 100644 (file)
@@ -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