Skip to content

Commit 8aa6df5

Browse files
committed
Include cibw script in sdist & add matrix value for build frontend
1 parent 7e87966 commit 8aa6df5

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/wheels.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ jobs:
100100
- [windows-2022, win_amd64]
101101
# TODO: support PyPy?
102102
python: [["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"], ["cp313", "3.13"], ["cp313t", "3.13"]]
103+
include:
104+
# 'pip' is the default
105+
- cibw_build_frontend: pip
106+
# TODO: Remove this and installing build deps in cibw_before_build.sh
107+
# after NumPy can be built with a released Cython
108+
- python: ["cp313t", "3.13"]
109+
cibw_build_frontend: 'pip; args: --no-build-isolation'
103110
exclude:
104111
- buildplat: [windows-2022, win_amd64]
105112
python: ["cp313t", "3.13"]
@@ -142,13 +149,6 @@ jobs:
142149
shell: bash -el {0}
143150
run: echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV"
144151

145-
# TODO: Remove this and installing build deps in cibw_before_build.sh
146-
# after NumPy can be built with a released Cython
147-
- name: Define CIBW_BUILD_FRONTEND environment variable
148-
if: ${{ matrix.python[0] == 'cp313t' }}
149-
run: |
150-
echo -e 'CIBW_BUILD_FRONTEND="pip; args: --no-build-isolation"' >> "$GITHUB_ENV"
151-
152152
- name: Build wheels
153153
uses: pypa/[email protected]
154154
with:
@@ -157,6 +157,7 @@ jobs:
157157
CIBW_PRERELEASE_PYTHONS: True
158158
CIBW_FREE_THREADED_SUPPORT: True
159159
CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
160+
CIBW_BUILD_FRONTEND: ${{ matrix.cibw_build_frontend }}
160161

161162
- name: Set up Python
162163
uses: mamba-org/setup-micromamba@v1

MANIFEST.in

+3
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,6 @@ prune pandas/tests/io/parser/data
6262
# Selectively re-add *.cxx files that were excluded above
6363
graft pandas/_libs/src
6464
graft pandas/_libs/include
65+
66+
# Add scripts needed for building wheels
67+
include scripts/cibw_before_build.sh

0 commit comments

Comments
 (0)