|
31 | 31 | if [[ "$INSTALL_OPENBLAS" = "true" ]] ; then
|
32 | 32 | # by default, use scipy-openblas64
|
33 | 33 | OPENBLAS=openblas64
|
34 |
| - if [[ $RUNNER_ARCH != "X64" ]] ; then |
35 |
| - # Possible values in github are X86, X64, ARM, or ARM64 |
36 |
| - # On macos-arm64 and win32 we do not use OpenBLAS |
37 |
| - # On win-arm64 we use # 32-bit interfaces (scipy_openblas32) |
| 34 | + # Possible values for RUNNER_ARCH in github are |
| 35 | + # X86, X64, ARM, or ARM64 |
| 36 | + # TODO: should we detect a missing RUNNER_ARCH and use platform.machine() |
| 37 | + # when wheel build is run outside github? |
| 38 | + # On 32-bit platforms, use scipy_openblas32 |
| 39 | + # On win-arm64 use scipy_openblas32 |
| 40 | + if [[ $RUNNER_ARCH == "X86" || $RUNNER_ARCH == "ARM" ]] ; then |
| 41 | + OPENBLAS=openblas32 |
| 42 | + elif [[ $RUNNER_ARCH == "ARM64" && $RUNNER_OS == "Windows" ]] ; then |
38 | 43 | OPENBLAS=openblas32
|
39 | 44 | fi
|
40 | 45 | echo PKG_CONFIG_PATH is $PKG_CONFIG_PATH, OPENBLAS is ${OPENBLAS}
|
41 | 46 | PKG_CONFIG_PATH=$PROJECT_DIR/.openblas
|
42 | 47 | rm -rf $PKG_CONFIG_PATH
|
43 | 48 | mkdir -p $PKG_CONFIG_PATH
|
44 | 49 | python -m pip install -r requirements/ci_requirements.txt
|
45 |
| - python -c "import scipy_openblas64; print(scipy_${OPENBLAS}.get_pkg_config())" > $PKG_CONFIG_PATH/scipy-openblas.pc |
| 50 | + python -c "import scipy_${OPENBLAS}; print(scipy_${OPENBLAS}.get_pkg_config())" > $PKG_CONFIG_PATH/scipy-openblas.pc |
46 | 51 | # Copy the shared objects to a path under $PKG_CONFIG_PATH, the build
|
47 | 52 | # will point $LD_LIBRARY_PATH there and then auditwheel/delocate-wheel will
|
48 | 53 | # pull these into the wheel. Use python to avoid windows/posix problems
|
|
0 commit comments