@@ -52,7 +52,6 @@ stages:
5252 - job : linux_arm64
5353 pool :
5454 name : " arm64-clients"
55- vmImage :
5655 demands :
5756 - Agent.Name -equals arm64-clients-$(Build.BuildId)
5857 dependsOn :
@@ -92,23 +91,6 @@ stages:
9291 - task : PublishBuildArtifacts@1
9392 inputs : {pathtoPublish: 'wheelhouse'}
9493
95- - job : linux_x64_cpython_manylinux_i686
96- pool : {vmImage: 'ubuntu-latest'}
97- timeoutInMinutes : 90
98- steps :
99- - task : UsePythonVersion@0
100- - bash : |
101- set -o errexit
102- python3 -m pip install --upgrade pip
103- python3 -m pip install cibuildwheel
104- displayName: Install dependencies
105- - bash : cibuildwheel --output-dir wheelhouse .
106- displayName : Build wheels
107- env :
108- CIBW_BUILD : cp*-manylinux_i686
109- - task : PublishBuildArtifacts@1
110- inputs : {pathtoPublish: 'wheelhouse'}
111-
11294 - job : linux_x64_cpython_musllinux
11395 pool : {vmImage: 'ubuntu-latest'}
11496 timeoutInMinutes : 90
@@ -168,9 +150,22 @@ stages:
168150 python3 -m pip install --upgrade pip
169151 python3 -m pip install cibuildwheel
170152 displayName: Install dependencies
171- - bash : cibuildwheel --output-dir wheelhouse .
153+ - powershell : |
154+ $vsPath = Resolve-Path "C:\Program Files (x86)\Microsoft Visual Studio\2019\*\VC\Auxiliary\Build\vcvars32.bat"
155+ cmd /c "call `"$vsPath`" && set > env_vars.txt"
156+
157+ Get-Content env_vars.txt | ForEach-Object {
158+ if ($_ -match "^([^=]+?)=(.*)$" -and $matches[1] -notmatch '^(SYSTEM|AGENT|BUILD|RELEASE|VSTS|TASK|USE_|FAIL_|MSDEPLOY|AZP_75787|AZP_AGENT|AZP_ENABLE|AZURE_HTTP|COPYFILESOVERSSHV0|ENABLE_ISSUE_SOURCE_VALIDATION|MODIFY_NUMBER_OF_RETRIES_IN_ROBOCOPY|MSBUILDHELPERS_ENABLE_TELEMETRY|RETIRE_AZURERM_POWERSHELL_MODULE|ROSETTA2_WARNING|AZP_PS_ENABLE)') {
159+ [System.Environment]::SetEnvironmentVariable($matches[1], $matches[2], "Process")
160+ Write-Host "##vso[task.setvariable variable=$($matches[1])]$($matches[2])"
161+ }
162+ }
163+
164+ where.exe cl.exe
165+ cibuildwheel --output-dir wheelhouse .
172166 displayName: Build wheels
173167 env:
168+ CIBW_ENVIRONMENT: "MSSdk=1 DISTUTILS_USE_SDK=1 SETUP_DO_GIT_SUBMODULE_INIT=1"
174169 CIBW_BUILD: "*win32*"
175170 - task : PublishBuildArtifacts@1
176171 inputs : {pathtoPublish: 'wheelhouse'}
@@ -185,9 +180,24 @@ stages:
185180 python3 -m pip install --upgrade pip
186181 python3 -m pip install cibuildwheel
187182 displayName: Install dependencies
188- - bash : cibuildwheel --output-dir wheelhouse .
183+ - powershell : |
184+ $vsPath = Resolve-Path "C:\Program Files (x86)\Microsoft Visual Studio\2019\*\VC\Auxiliary\Build\vcvars64.bat"
185+ cmd /c "call `"$vsPath`" && set > env_vars.txt"
186+
187+ Get-Content env_vars.txt | ForEach-Object {
188+ if ($_ -match "^([^=]+?)=(.*)$" -and $matches[1] -notmatch '^(SYSTEM|AGENT|BUILD|RELEASE|VSTS|TASK|USE_|FAIL_|MSDEPLOY|AZP_75787|AZP_AGENT|AZP_ENABLE|AZURE_HTTP|COPYFILESOVERSSHV0|ENABLE_ISSUE_SOURCE_VALIDATION|MODIFY_NUMBER_OF_RETRIES_IN_ROBOCOPY|MSBUILDHELPERS_ENABLE_TELEMETRY|RETIRE_AZURERM_POWERSHELL_MODULE|ROSETTA2_WARNING|AZP_PS_ENABLE)') {
189+ [System.Environment]::SetEnvironmentVariable($matches[1], $matches[2], "Process")
190+ Write-Host "##vso[task.setvariable variable=$($matches[1])]$($matches[2])"
191+ }
192+ }
193+
194+ where.exe cl.exe
195+ cibuildwheel --output-dir wheelhouse .
189196 displayName: Build wheels
190197 env:
191198 CIBW_BUILD: "*win_amd64*"
199+ CIBW_ENVIRONMENT: "MSSdk=1 DISTUTILS_USE_SDK=1 SETUP_DO_GIT_SUBMODULE_INIT=1"
200+ CIBW_BUILD_VERBOSITY: "3"
201+ DISTUTILS_DEBUG: "1"
192202 - task : PublishBuildArtifacts@1
193203 inputs : {pathtoPublish: 'wheelhouse'}
0 commit comments