-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
1,274 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,7 @@ jobs: | |
echo github.ref ${{ github.ref }} | ||
build_wheels: | ||
name: Wheel, ${{ matrix.python }}-${{ matrix.buildplat[1] }}-${{ matrix.buildplat[2] }} | ||
name: Wheel, ${{ matrix.python }}-${{ matrix.buildplat[1] }} | ||
needs: parse_commit_info | ||
if: contains(needs.parse_commit_info.outputs.can_build, 'true') | ||
runs-on: ${{ matrix.buildplat[0] }} | ||
|
@@ -103,11 +103,10 @@ jobs: | |
# should also be able to do multi-archs on a single entry, e.g. | ||
# [windows-2019, win*, "AMD64 x86"]. However, those two require a different compiler setup | ||
# so easier to separate out here. | ||
- [ubuntu-22.04, manylinux_x86_64, ""] | ||
- [macos-13, macosx_x86_64, openblas] | ||
# - [macos-13, macosx_x86_64, accelerate] | ||
# - [macos-14, macosx_arm64, accelerate] # always use accelerate | ||
# - [windows-2019, win_amd64, ""] | ||
- [ubuntu-22.04, manylinux_x86_64] | ||
- [macos-13, macosx_x86_64] | ||
- [macos-14, macosx_arm64] | ||
- [windows-2019, win_amd64] | ||
|
||
# python: ["cp310", "cp311", "cp312", "cp13"] | ||
python: ["cp312"] | ||
|
@@ -146,18 +145,6 @@ jobs: | |
choco install rtools -y --no-progress --force --version=4.0.0.20220206 | ||
echo "c:\rtools40\ucrt64\bin;" >> $env:GITHUB_PATH | ||
- name: Windows - PKG_CONFIG | ||
if: runner.os == 'Windows' | ||
run: | | ||
choco install -y --no-progress --stoponfirstfailure --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite | ||
$CIBW = "${{ github.workspace }}/.openblas" | ||
# pkgconfig needs a complete path, and not just "./openblas since the | ||
# build is run in a tmp dir (?) | ||
# It seems somewhere in the env passing, `\` is not | ||
# passed through, so convert it to '/' | ||
$CIBW = $CIBW.replace("\","/") | ||
echo "CIBW_ENVIRONMENT_WINDOWS=PKG_CONFIG_PATH=$CIBW" >> $env:GITHUB_ENV | ||
- name: macOS - Setup | ||
if: matrix.buildplat[0] == 'macos-13' || matrix.buildplat[0] == 'macos-14' | ||
run: | | ||
|
@@ -166,30 +153,8 @@ jobs: | |
echo "FC=gfortran-13" >> "$GITHUB_ENV" | ||
echo "F77=gfortran-13" >> "$GITHUB_ENV" | ||
echo "F90=gfortran-13" >> "$GITHUB_ENV" | ||
if [[ ${{ matrix.buildplat[2] }} == 'accelerate' ]]; then | ||
# macosx_arm64 and macosx_x86_64 with accelerate | ||
# only target Sonoma onwards | ||
CIBW="MACOSX_DEPLOYMENT_TARGET=14.0 INSTALL_OPENBLAS=false RUNNER_OS=macOS" | ||
echo "CIBW_ENVIRONMENT_MACOS=$CIBW" >> "$GITHUB_ENV" | ||
# the macos-13 image that's used for building the x86_64 wheel can't test | ||
# a wheel with deployment target >= 14 without further work | ||
echo "CIBW_TEST_SKIP=*-macosx_x86_64" >> "$GITHUB_ENV" | ||
else | ||
# macosx_x86_64 with OpenBLAS | ||
# if INSTALL_OPENBLAS isn't specified then scipy-openblas is automatically installed | ||
CIBW="RUNNER_OS=macOS" | ||
PKG_CONFIG_PATH="$PWD/.openblas" | ||
DYLD="$DYLD_LIBRARY_PATH:/$PWD/.openblas/lib" | ||
echo "CIBW_ENVIRONMENT_MACOS=$CIBW PKG_CONFIG_PATH=$PKG_CONFIG_PATH DYLD_LIBRARY_PATH=$DYLD" >> "$GITHUB_ENV" | ||
fi | ||
- name: Linux - Setup | ||
if: runner.os == 'Linux' | ||
run: | | ||
CIBW="RUNNER_OS=Linux" | ||
PKG_CONFIG_PATH="/project/.openblas" | ||
LD="$LD_LIBRARY_PATH:/project/.openblas/lib" | ||
echo "CIBW_ENVIRONMENT_LINUX=$CIBW PKG_CONFIG_PATH=$PKG_CONFIG_PATH LD_LIBRARY_PATH=$LD" >> "$GITHUB_ENV" | ||
CIBW="RUNNER_OS=macOS" | ||
echo "CIBW_ENVIRONMENT_MACOS=$CIBW" >> "$GITHUB_ENV" | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
|
@@ -215,7 +180,7 @@ jobs: | |
# @v4 does not merge artifacts with the name (even if the contents) | ||
# are different. So in a matrix, we have to give each artifact a | ||
# unique name. We merge these later in another job. | ||
name: wheel-${{ matrix.python }}-${{ matrix.buildplat[1] }}-${{ matrix.buildplat[2] }} | ||
name: wheel-${{ matrix.python }}-${{ matrix.buildplat[1] }} | ||
path: ./wheelhouse/*.whl | ||
|
||
build_sdist: | ||
|
@@ -248,7 +213,7 @@ jobs: | |
- name: Install Ubuntu dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libopenblas-dev liblapack-dev gfortran | ||
sudo apt-get install gfortran | ||
- name: Install requirements | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,4 @@ | ||
option('blas', type: 'string', value: 'auto', | ||
description: 'Option for BLAS library selection. By default, try to find any in the order given by `blas-order`') | ||
option('lapack', type: 'string', value: 'auto', | ||
description: 'Option for LAPACK library selection. By default, try to find any in the order given by `lapack-order`') | ||
option('blas-order', type: 'array', value: ['auto'], | ||
description: 'Order of BLAS libraries to search for. E.g.: mkl,openblas,blis,blas') | ||
option('lapack-order', type: 'array', value: ['auto'], | ||
description: 'Order of LAPACK libraries to search for. E.g.: mkl,openblas,lapack') | ||
option('use-ilp64', type: 'boolean', value: false, | ||
description: 'Use ILP64 (64-bit integer) BLAS and LAPACK interfaces') | ||
option('blas-symbol-suffix', type: 'string', value: 'auto', | ||
description: 'BLAS and LAPACK symbol suffix to use, if any') | ||
option('use-g77-abi', type: 'boolean', value: false, | ||
description: 'If set to true, forces using g77 compatibility wrappers ' + | ||
'for LAPACK functions. The default is to use gfortran ' + | ||
'ABI for all LAPACK libraries except MKL.') | ||
|
||
# We do not use this option | ||
option('allow-noblas', type: 'boolean', value: false, | ||
description: 'If set to true, allow building with (slow!) internal fallback routines') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.