Skip to content

Commit

Permalink
Update build_wheels.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
borisbolliet authored Sep 29, 2024
1 parent 21436b0 commit 503eb24
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@ jobs:
run: |
rm -rf build dist *.egg-info class-sz/python/classy_sz.*so class-sz/python/classy_sz.*egg-info
# Set the correct CIBW_BUILD for the specific Python version
- name: Set CIBW_BUILD for the correct CPython version
run: |
if [ "${{ matrix.python-version }}" == "3.9" ]; then
export CIBW_BUILD="cp39-*"
elif [ "${{ matrix.python-version }}" == "3.10" ]; then
export CIBW_BUILD="cp310-*"
fi
echo "Using CIBW_BUILD: $CIBW_BUILD"
- name: Install system dependencies (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
Expand All @@ -96,6 +106,7 @@ jobs:
env:
CIBW_ENVIRONMENT: "LDFLAGS='-L/usr/lib/x86_64-linux-gnu' CFLAGS='-I/usr/include' LIBRARY_PATH='/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH' C_INCLUDE_PATH='/usr/include:$C_INCLUDE_PATH' LD_LIBRARY_PATH='/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH'"
#CIBW_BUILD: "cp39-manylinux_x86_64" # Constrain build to cp39-manylinux_x86_64
CIBW_BUILD: $CIBW_BUILD
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-* cp38-* pp* *-manylinux_i686 *musllinux*"
CIBW_BEFORE_BUILD: |
# Build GSL from source
Expand Down Expand Up @@ -195,6 +206,7 @@ jobs:
if: matrix.os == 'macos-latest'
env:
# CIBW_BUILD: "cp39-macosx_arm64" # Restrict to cp39-macosx_arm64
CIBW_BUILD: $CIBW_BUILD
CIBW_ARCHS: "arm64"
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-* cp38-* pp*"
LDFLAGS: "-L/opt/homebrew/opt/libomp/lib -L/opt/homebrew/opt/gsl/lib -L/opt/homebrew/opt/fftw/lib"
Expand Down

0 comments on commit 503eb24

Please sign in to comment.