@@ -28,26 +28,30 @@ steps:
2828 mkdir C:/opt/openblas/openblas_dll
2929 mkdir C:/opt/32/lib/pkgconfig
3030 mkdir C:/opt/64/lib/pkgconfig
31- # TBD: support 32 bit testing
3231 $target=$(python -c "import tools.openblas_support as obs; plat=obs.get_plat(); ilp64=obs.get_ilp64(); target=f'openblas_{plat}.zip'; obs.download_openblas(target, plat, ilp64);print(target)")
3332 unzip -o -d c:/opt/ $target
3433 echo "##vso[task.setvariable variable=PKG_CONFIG_PATH]c:/opt/64/lib/pkgconfig"
3534 copy C:/opt/64/bin/*.dll C:/opt/openblas/openblas_dll
3635 displayName : ' Download / Install OpenBLAS'
3736
3837- powershell : |
38+ # Note: ensure the `pip install .` command remains the last one here, to
39+ # avoid "green on failure" issues
3940 python -c "from tools import openblas_support; openblas_support.make_init('numpy')"
4041 If ( Test-Path env:NPY_USE_BLAS_ILP64 ) {
4142 python -m pip install . -Csetup-args="--vsenv" -Csetup-args="-Duse-ilp64=true" -Csetup-args="-Dblas-symbol-suffix=64_"
4243 } else {
4344 python -m pip install . -Csetup-args="--vsenv"
4445 }
46+ displayName : ' Build NumPy'
47+
48+ - powershell : |
4549 # copy from c:/opt/openblas/openblas_dll to numpy/.libs to ensure it can
4650 # get loaded when numpy is imported (no RPATH on Windows)
4751 $target = $(python -c "import sysconfig; print(sysconfig.get_path('platlib'))")
4852 mkdir $target/numpy/.libs
4953 copy C:/opt/openblas/openblas_dll/*.dll $target/numpy/.libs
50- displayName : ' Build NumPy '
54+ displayName : ' Copy OpenBLAS DLL to site-packages '
5155
5256- script : |
5357 python -m pip install threadpoolctl
0 commit comments