@@ -24,46 +24,26 @@ steps:
24
24
displayName : ' Install utilities'
25
25
26
26
- powershell : |
27
- $ErrorActionPreference = "Stop"
28
- mkdir C:/opt/openblas/openblas_dll
29
- mkdir C:/opt/32/lib/pkgconfig
30
- mkdir C:/opt/64/lib/pkgconfig
31
- $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)")
32
- unzip -o -d c:/opt/ $target
33
- echo "##vso[task.setvariable variable=PKG_CONFIG_PATH]c:/opt/64/lib/pkgconfig"
34
- copy C:/opt/64/bin/*.dll C:/opt/openblas/openblas_dll
35
- displayName : ' Download / Install OpenBLAS'
36
-
37
- - powershell : |
38
- # Note: ensure the `pip install .` command remains the last one here, to
39
- # avoid "green on failure" issues
40
- python -c "from tools import openblas_support; openblas_support.make_init('numpy')"
27
+ # Note: ensure the `pip install .` command remains the last one here,
28
+ # to avoid "green on failure" issues
41
29
If ( Test-Path env:DISABLE_BLAS ) {
42
30
python -m pip install . -v -Csetup-args="--vsenv" -Csetup-args="-Dblas=none" -Csetup-args="-Dlapack=none" -Csetup-args="-Dallow-noblas=true"
43
31
}
44
32
elseif ( Test-Path env:NPY_USE_BLAS_ILP64 ) {
45
- python -m pip install " scipy-openblas64<=0.3.23.293.2" spin
33
+ python -m pip install scipy-openblas64 spin
46
34
spin config-openblas --with-scipy-openblas=64
47
35
$env:PKG_CONFIG_PATH="$pwd/.openblas"
48
- python -m pip install . -v -Csetup-args="--vsenv" -Csetup-args="-Duse-ilp64=true"
49
- } else {
36
+ # use-ilp64 is no longer needed with scipy-openblas > 0.3.24.95.0
37
+ # python -m pip install . -v -Csetup-args="--vsenv" -Csetup-args="-Duse-ilp64=true"
50
38
python -m pip install . -v -Csetup-args="--vsenv"
39
+ } else {
40
+ python -m pip install scipy-openblas32 spin
41
+ spin config-openblas --with-scipy-openblas=32
42
+ $env:PKG_CONFIG_PATH="$pwd/.openblas"
43
+ python -m pip install . -v -Csetup-args="--vsenv"
51
44
}
52
45
displayName : ' Build NumPy'
53
46
54
- - powershell : |
55
- # copy from c:/opt/openblas/openblas_dll to numpy/../numpy.libs to ensure it can
56
- # get loaded when numpy is imported (no RPATH on Windows)
57
- $target = $(python -c "import sysconfig; print(sysconfig.get_path('platlib'))")
58
- mkdir $target/numpy.libs
59
- copy C:/opt/openblas/openblas_dll/*.dll $target/numpy.libs
60
- displayName : ' Copy OpenBLAS DLL to site-packages'
61
-
62
- - script : |
63
- python -m pip install threadpoolctl
64
- python tools/openblas_support.py --check_version
65
- displayName : ' Check OpenBLAS version'
66
-
67
47
- powershell : |
68
48
cd tools # avoid root dir to not pick up source tree
69
49
# Get a gfortran onto the path for f2py tests
0 commit comments