Skip to content
Snippets Groups Projects
Commit 75fdbd59 authored by Maxence Naud's avatar Maxence Naud
Browse files

Update cibuildwheel_windows.gitlab-ci.yml

parent fbd8c07e
No related branches found
No related tags found
No related merge requests found
...@@ -43,18 +43,32 @@ release:pip:windows: ...@@ -43,18 +43,32 @@ release:pip:windows:
# - !reference [.windows:download:repositories, before_script] # - !reference [.windows:download:repositories, before_script]
before_script: before_script:
# Install Chocolatey # Install Chocolatey
- Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) - Set-ExecutionPolicy Bypass -Scope Process -Force
- iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install dependencies # Install dependencies
- choco install visualstudio2022buildtools -y --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.Tools.x64" - choco install visualstudio2022buildtools -y
- choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y - choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
- choco install git.install -y - choco install git.install -y
- choco install python -y - choco install python -y
# Set up Visual Studio environment
- Install-Module VSSetup -Scope CurrentUser -Force -ErrorAction SilentlyContinue
- Import-Module VSSetup
- $vsInstance = Get-VSSetupInstance | Select-VSSetupInstance
- $vsPath = $vsInstance.InstallationPath
- $env:VSINSTALLDIR = $vsPath
- $env:VCINSTALLDIR = "${vsPath}\VC"
- $env:WindowsSDKDir = "C:\Program Files (x86)\Windows Kits\10"
- $env:Path = "${vsPath}\Common7\IDE;${vsPath}\Common7\Tools;${env:Path}"
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") - $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
# Explicitly set up Visual Studio environment
- call "C:\Program Files\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\VsDevCmd.bat" # Install cibuildwheel
- Import-Module "$vsPath\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
- Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation
- py -m pip install cibuildwheel==2.22.0 - py -m pip install cibuildwheel==2.22.0
# Download repositories # Download repositories
- $DEPENDENCY_JOB="build:windows_python" - $DEPENDENCY_JOB="build:windows_python"
- !reference [.windows:download:repositories, before_script] - !reference [.windows:download:repositories, before_script]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment