Skip to content

Commit

Permalink
cython build action dynamic shell and better conditioning
Browse files Browse the repository at this point in the history
  • Loading branch information
jfranmatheu committed Feb 12, 2025
1 parent 62f7b04 commit 461260a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_cython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,18 @@ jobs:
python -m pip install cython numpy setuptools wheel
- name: Build Cython extensions
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
env:
ARCHFLAGS: ${{ matrix.target == 'intel' && '-arch x86_64' || '' }}
run: |
if [ "${{ matrix.os }}" == "macos-latest" ] && [ "${{ matrix.target }}" == "intel" ]; then
${{ matrix.os != 'windows-latest' && format(
'if [ "{0}" == "macos-latest" ] && [ "{1}" == "intel" ]; then
PYTHON_CROSSENV=$(pwd)/crossenv
python -m pip install crossenv
python -m crossenv $(which python3) $PYTHON_CROSSENV
source $PYTHON_CROSSENV/bin/activate
python -m pip install cython numpy setuptools wheel
fi
fi', matrix.os, matrix.target) || '' }}
python cy_setup.py build_ext --inplace
- name: Rename compiled extensions
Expand Down

0 comments on commit 461260a

Please sign in to comment.