Skip to content

Commit e16f34c

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

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-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

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ all = ['adbc-driver-postgresql>=0.10.0',
122122
# TODO: Remove after setuptools support is dropped.
123123
[tool.setuptools]
124124
include-package-data = true
125+
script-files = ["scripts/cibw_before_build.sh"]
125126

126127
[tool.setuptools.packages.find]
127128
include = ["pandas", "pandas.*"]

0 commit comments

Comments
 (0)