@@ -270,18 +270,18 @@ jobs:
270270 pipx run abi3audit --strict --report {wheel}
271271 # Windows configuration - CUDA via Jimver/cuda-toolkit (installed before cibuildwheel)
272272 CIBW_ENVIRONMENT_WINDOWS : >
273- PATH="C:\\Program Files\\LLVM \\bin;C:\\Users\\runneradmin\\.pecos\\deps\\cmake-${{ env.PECOS_CMAKE_VERSION }}\\bin;$PATH"
274- LLVM_SYS_211_PREFIX="C:\\Program Files\\LLVM "
273+ PATH="C:\\Users\\runneradmin\\.pecos\\deps\\llvm-21.1 \\bin;C:\\Users\\runneradmin\\.pecos\\deps\\cmake-${{ env.PECOS_CMAKE_VERSION }}\\bin;$PATH"
274+ LLVM_SYS_211_PREFIX="C:\\Users\\runneradmin\\.pecos\\deps\\llvm-21.1 "
275275 CMAKE="C:\\Users\\runneradmin\\.pecos\\deps\\cmake-${{ env.PECOS_CMAKE_VERSION }}\\bin\\cmake.exe"
276276 MATURIN_PEP517_ARGS="--locked --features=extension-module,mwpf"
277277 CIBW_BEFORE_ALL_WINDOWS : >
278- echo "=== Installing LLVM 21.1 with Chocolatey ===" &&
278+ echo "=== Installing LLVM 21.1 development archive ===" &&
279279 rustup update &&
280- choco install llvm --version= ${{ env.LLVM_RELEASE_VERSION }} -y --no-progress &&
281- cargo run --locked --release -p pecos-cli -- llvm configure "C:\Program Files\LLVM " &&
280+ powershell -NoProfile -ExecutionPolicy Bypass -File scripts\ci\install- llvm-21-windows.ps1 -InstallDir "C:\Users\runneradmin\.pecos\deps\llvm-21.1" -Version ${{ env.LLVM_RELEASE_VERSION }} &&
281+ cargo run --locked --release -p pecos-cli -- llvm configure "C:\Users\runneradmin\.pecos\deps\llvm-21.1 " &&
282282 cargo run --locked --release -p pecos-cli -- install cmake --force &&
283283 echo "=== Checking LLVM installation ===" &&
284- if exist "C:\Program Files\LLVM \bin\llvm-config.exe" (echo LLVM directory exists) else (echo ERROR: LLVM directory not found! && exit /b 1)
284+ if exist "C:\Users\runneradmin\.pecos\deps\llvm-21.1 \bin\llvm-config.exe" (echo LLVM directory exists) else (echo ERROR: LLVM directory not found! && exit /b 1)
285285 # Install delvewheel and patch it to ignore ext-ms-win-* API sets
286286 # (delvewheel ignores api-ms-win-* but not ext-ms-win-* which are also Windows API sets)
287287 CIBW_BEFORE_BUILD_WINDOWS : >
@@ -290,7 +290,7 @@ jobs:
290290 # Note: --no-dll excludes Windows system DLLs that should not be bundled
291291 # combase.dll and rmclient.dll are core Windows components that fail when bundled
292292 CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : >
293- delvewheel repair -v --add-path "C:\\Program Files\\LLVM \\bin" --no-dll "combase.dll;rmclient.dll" -w {dest_dir} {wheel} &&
293+ delvewheel repair -v --add-path "C:\\Users\\runneradmin\\.pecos\\deps\\llvm-21.1 \\bin" --no-dll "combase.dll;rmclient.dll" -w {dest_dir} {wheel} &&
294294 pipx run abi3audit --strict --report {wheel}
295295
296296 - name : Upload pecos-rslib wheels
@@ -349,17 +349,17 @@ jobs:
349349 PATH=$HOME/.pecos/bin:$PATH DYLD_LIBRARY_PATH=$HOME/.pecos/deps/llvm-21.1/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} &&
350350 pipx run abi3audit --strict --report {wheel}
351351 CIBW_ENVIRONMENT_WINDOWS : >
352- PATH="C:\\Program Files\\LLVM \\bin;$PATH"
353- LLVM_SYS_211_PREFIX="C:\\Program Files\\LLVM "
352+ PATH="C:\\Users\\runneradmin\\.pecos\\deps\\llvm-21.1 \\bin;$PATH"
353+ LLVM_SYS_211_PREFIX="C:\\Users\\runneradmin\\.pecos\\deps\\llvm-21.1 "
354354 CIBW_BEFORE_ALL_WINDOWS : >
355355 rustup update &&
356- if not exist "C:\Program Files\LLVM\ bin\llvm-config.exe" (choco install llvm --version= ${{ env.LLVM_RELEASE_VERSION }} -y --no-progress ) else (echo LLVM already installed from pecos-rslib build) &&
357- cargo run --locked --release -p pecos-cli -- llvm configure "C:\Program Files\LLVM "
356+ if not exist "C:\Users\runneradmin\.pecos\deps\llvm-21.1\ bin\llvm-config.exe" (powershell -NoProfile -ExecutionPolicy Bypass -File scripts\ci\install- llvm-21-windows.ps1 -InstallDir "C:\Users\runneradmin\.pecos\deps\llvm-21.1" -Version ${{ env.LLVM_RELEASE_VERSION }}) else (echo LLVM already installed from pecos-rslib build) &&
357+ cargo run --locked --release -p pecos-cli -- llvm configure "C:\Users\runneradmin\.pecos\deps\llvm-21.1 "
358358 CIBW_BEFORE_BUILD_WINDOWS : >
359359 pip install delvewheel &&
360360 python -c "import delvewheel._dll_list as d,inspect,re as r;p=inspect.getfile(d);c=open(p).read();n=chr(10);open(p,'w').write(c.replace(r\"re.compile('api-.*'),\",r\"re.compile('api-.*'),\"+n+r\" re.compile('ext-.*'),\")) if 'ext-.*' not in c else None"
361361 CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : >
362- delvewheel repair -v --add-path "C:\\Program Files\\LLVM \\bin" --no-dll "combase.dll;rmclient.dll" -w {dest_dir} {wheel} &&
362+ delvewheel repair -v --add-path "C:\\Users\\runneradmin\\.pecos\\deps\\llvm-21.1 \\bin" --no-dll "combase.dll;rmclient.dll" -w {dest_dir} {wheel} &&
363363 pipx run abi3audit --strict --report {wheel}
364364
365365 - name : Upload pecos-rslib-llvm wheels
0 commit comments