]> granicus.if.org Git - graphviz/commitdiff
Use preinstalled Python 3 instead of installing it in CI
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Sun, 9 Aug 2020 13:39:51 +0000 (15:39 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Sun, 9 Aug 2020 18:36:23 +0000 (20:36 +0200)
One more step towards https://gitlab.com/graphviz/graphviz/-/issues/1759.

.gitlab-ci.yml
windows/dependencies/graphviz-build-utilities

index a5ccb6a146b5d541d369ec1317ba6d1285650b6c..b89ff90747d07c7ce2a89934e86554c2a1cf6c01 100644 (file)
@@ -65,19 +65,17 @@ portable-source:
         # Retrieve submodules, dependencies are stored there.
         - git submodule update --init
         # Install and set PATH
-        - choco install --no-progress -y python3
-        - C:\ProgramData\chocolatey\tools\shimgen.exe -o=C:\Python38\python3.exe -p=C:\Python38\python.exe
         - choco install --no-progress -y grep
         - choco install --no-progress -y diffutils
-        - $Env:Path += ";C:\Python38"
-        - $Env:Path += ";C:\Python38\Scripts"
-        - pip install pytest
         - $Env:Path += ";$env:CI_PROJECT_DIR\windows\dependencies\graphviz-build-utilities"
         - $Env:Path += ";$env:CI_PROJECT_DIR\windows\dependencies\graphviz-build-utilities\NSIS\Bin"
         - $Env:Path += ";$env:CI_PROJECT_DIR\windows\dependencies\graphviz-build-utilities\Perl64\bin"
+        - $Env:Path += ";$env:CI_PROJECT_DIR\windows\dependencies\graphviz-build-utilities\Python38-32"
+        - $Env:Path += ";$env:CI_PROJECT_DIR\windows\dependencies\graphviz-build-utilities\Python38-32\Scripts"
         # CMake's cpack must be before Chocolatey's in the path
         - $Env:Path = "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;$Env:Path"
         - $Env:Path += ";C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
+        - python3 -m pip install pytest
         - $Env:graphviz_install_dir = "C:\Graphviz"
         # Build
         - >-
index ec9bbb85178325e2453acb6825e6880275be60e5..18866be5e6588ba86fe80f1c9d1d2724f2246ff4 160000 (submodule)
@@ -1 +1 @@
-Subproject commit ec9bbb85178325e2453acb6825e6880275be60e5
+Subproject commit 18866be5e6588ba86fe80f1c9d1d2724f2246ff4