Skip to content

Commit

Permalink
Include cibw script in sdist & add matrix value for build frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
lysnikolaou committed Jul 11, 2024
1 parent 7e87966 commit 8aa6df5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ jobs:
- [windows-2022, win_amd64]
# TODO: support PyPy?
python: [["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"], ["cp313", "3.13"], ["cp313t", "3.13"]]
include:
# 'pip' is the default
- cibw_build_frontend: pip
# TODO: Remove this and installing build deps in cibw_before_build.sh
# after NumPy can be built with a released Cython
- python: ["cp313t", "3.13"]
cibw_build_frontend: 'pip; args: --no-build-isolation'
exclude:
- buildplat: [windows-2022, win_amd64]
python: ["cp313t", "3.13"]
Expand Down Expand Up @@ -142,13 +149,6 @@ jobs:
shell: bash -el {0}
run: echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV"

# TODO: Remove this and installing build deps in cibw_before_build.sh
# after NumPy can be built with a released Cython
- name: Define CIBW_BUILD_FRONTEND environment variable
if: ${{ matrix.python[0] == 'cp313t' }}
run: |
echo -e 'CIBW_BUILD_FRONTEND="pip; args: --no-build-isolation"' >> "$GITHUB_ENV"
- name: Build wheels
uses: pypa/cibuildwheel@v2.19.1
with:
Expand All @@ -157,6 +157,7 @@ jobs:
CIBW_PRERELEASE_PYTHONS: True
CIBW_FREE_THREADED_SUPPORT: True
CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
CIBW_BUILD_FRONTEND: ${{ matrix.cibw_build_frontend }}

- name: Set up Python
uses: mamba-org/setup-micromamba@v1
Expand Down
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ prune pandas/tests/io/parser/data
# Selectively re-add *.cxx files that were excluded above
graft pandas/_libs/src
graft pandas/_libs/include

# Add scripts needed for building wheels
include scripts/cibw_before_build.sh

0 comments on commit 8aa6df5

Please sign in to comment.