Skip to content

Commit 034b7ff

Browse files
ksundenmeeseeksmachine
authored andcommitted
Backport PR #26582: MNT: Enable wheels for Python 3.12
1 parent 57e79c4 commit 034b7ff

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,28 @@ jobs:
135135
name: sdist
136136
path: dist/
137137

138+
- name: Build wheels for CPython 3.12
139+
uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
140+
with:
141+
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
142+
env:
143+
CIBW_BUILD: "cp312-*"
144+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
145+
# Remove this once NumPy with Python 3.12 wheels is not pre-release.
146+
CIBW_BEFORE_BUILD: >-
147+
pip install certifi "pybind11>=2.6" "setuptools>=42" "setuptools_scm>=7" &&
148+
pip install --pre "numpy>=1.25" &&
149+
rm -rf {package}/build
150+
CIBW_BEFORE_BUILD_WINDOWS: >-
151+
pip install certifi delvewheel "pybind11>=2.6" "setuptools>=42" "setuptools_scm>=7" &&
152+
pip install --pre "numpy>=1.25" &&
153+
rm -rf {package}/build
154+
CIBW_ENVIRONMENT: PIP_NO_BUILD_ISOLATION=0
155+
# Remove this once contourpy has Python 3.12 wheels.
156+
CIBW_BEFORE_TEST: >-
157+
pip install "meson>=1.2.0" "meson-python>=0.13.1" "ninja" "pybind11>=2.10.4" &&
158+
pip install --pre "numpy>=1.25"
159+
138160
- name: Build wheels for CPython 3.11
139161
uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
140162
with:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy