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 e16f34c
Show file tree
Hide file tree
Showing 2 changed files with 9 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/[email protected]
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
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ all = ['adbc-driver-postgresql>=0.10.0',
# TODO: Remove after setuptools support is dropped.
[tool.setuptools]
include-package-data = true
script-files = ["scripts/cibw_before_build.sh"]

[tool.setuptools.packages.find]
include = ["pandas", "pandas.*"]
Expand Down

0 comments on commit e16f34c

Please sign in to comment.