@@ -46,45 +46,32 @@ jobs:
4646 gfortran --version
4747 - name : pip-packages
4848 run : |
49- pip install numpy==1.22.2 cython pybind11 pythran meson ninja pytest pytest-xdist pytest-timeout pooch
49+ pip install numpy==1.22.2 cython pybind11 pythran meson ninja pytest pytest-xdist pytest-timeout pooch rich_click click doit pydevtool
5050 - name : openblas-libs
5151 run : |
5252 # Download and install pre-built OpenBLAS library
5353 # Built with mingw-w64, -ucrt -static.
5454 # https://github.com/matthew-brett/openblas-libs/blob/ucrt-build/build_openblas.ps1
55- choco install unzip -y
56- choco install wget -y
57- wget https://github.com/scipy/scipy-ci-artifacts/raw/main/openblas_32_if.zip
58- unzip -d c:\ openblas_32_if.zip
59- echo "PKG_CONFIG_PATH=c:\opt\openblas\if_32\64\lib\pkgconfig;" >> $env:GITHUB_ENV
60- - name : meson-configure
61- run : |
62- meson setup build --prefix=$PWD\build
63- - name : meson-build
64- run : |
65- ninja -j 2 -C build
66- - name : meson-install
55+ choco install wget unzip -y --no-progress
56+ wget -q https://anaconda.org/multibuild-wheels-staging/openblas-libs/v0.3.20-571-g3dec11c6/download/openblas-v0.3.20-571-g3dec11c6-win_amd64-gcc_10_3_0.zip
57+ unzip -d c:\opt openblas-v0.3.20-571-g3dec11c6-win_amd64-gcc_10_3_0.zip
58+ echo "PKG_CONFIG_PATH=c:\opt\64\lib\pkgconfig;" >> $env:GITHUB_ENV
59+ - name : build
6760 run : |
61+ echo "SCIPY_USE_PROPACK=1" >> $env:GITHUB_ENV
62+ python dev.py build -j 2 --win-cp-openblas
63+
64+ # following steps are required because the build step does not put
65+ # the *.pyd files in build-install! Furthermore the --win-cp-openblas
66+ # option does not seem to copy libopenblas*.dll, so manually copy it.
6867 cd build
6968 meson install
70- - name : build-path
71- run : |
72- echo "installed_path=$PWD\build\Lib\site-packages" >> $env:GITHUB_ENV
73- - name : post-install
74- run : |
75- $scipy_path = "${env:installed_path}\scipy"
76- $libs_path = "${scipy_path}\.libs"
77- mkdir ${libs_path}
78- $ob_path = (pkg-config --variable libdir openblas) -replace "lib", "bin"
79- cp $ob_path/*.dll $libs_path
80- # Write _distributor_init.py to scipy dir to load .libs DLLs.
81- & python tools\openblas_support.py --write-init $scipy_path
82- - name : prep-test
83- run : |
84- echo "PYTHONPATH=${env:installed_path}" >> $env:GITHUB_ENV
85- echo "SCIPY_USE_PROPACK=1" >> $env:GITHUB_ENV
69+ cd ..
70+ cp C:\opt\64\bin\*.dll $pwd\build-install\Lib\site-packages\scipy\.libs\
71+ echo "PYTHONPATH=$PWD\build-install\Lib\site-packages" >> $env:GITHUB_ENV
72+ python tools\openblas_support.py --write-init $PWD\build-install\Lib\site-packages\scipy\
8673 - name : test
8774 run : |
88- mkdir tmp
89- cd tmp
90- python -c ' import scipy; scipy.test()'
75+ Get-ChildItem env:
76+ cd $env:PYTHONPATH
77+ python -c " import sys; import scipy; sys.exit(not scipy.test())"
0 commit comments