Skip to content

Commit 96ad671

Browse files
authored
BLD: Build wheels using numpy 2.0rc1 (#58087)
* BLD: Build wheels using numpy 2.0rc1 * move to pyproject.toml * typo
1 parent 21681ba commit 96ad671

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

.circleci/config.yml

-4
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ jobs:
7272
no_output_timeout: 30m # Sometimes the tests won't generate any output, make sure the job doesn't get killed by that
7373
command: |
7474
pip3 install cibuildwheel==2.15.0
75-
# When this is a nightly wheel build, allow picking up NumPy 2.0 dev wheels:
76-
if [[ "$IS_SCHEDULE_DISPATCH" == "true" || "$IS_PUSH" != 'true' ]]; then
77-
export CIBW_ENVIRONMENT="PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"
78-
fi
7975
cibuildwheel --prerelease-pythons --output-dir wheelhouse
8076
8177
environment:

.github/workflows/wheels.yml

-12
Original file line numberDiff line numberDiff line change
@@ -148,18 +148,6 @@ jobs:
148148
CIBW_PRERELEASE_PYTHONS: True
149149
CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
150150

151-
- name: Build nightly wheels (with NumPy pre-release)
152-
if: ${{ (env.IS_SCHEDULE_DISPATCH == 'true' && env.IS_PUSH != 'true') }}
153-
uses: pypa/[email protected]
154-
with:
155-
package-dir: ./dist/${{ startsWith(matrix.buildplat[1], 'macosx') && env.sdist_name || needs.build_sdist.outputs.sdist_file }}
156-
env:
157-
# The nightly wheels should be build witht he NumPy 2.0 pre-releases
158-
# which requires the additional URL.
159-
CIBW_ENVIRONMENT: PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
160-
CIBW_PRERELEASE_PYTHONS: True
161-
CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
162-
163151
- name: Set up Python
164152
uses: mamba-org/setup-micromamba@v1
165153
with:

pyproject.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ setup = ['--vsenv'] # For Windows
152152
skip = "cp36-* cp37-* cp38-* pp* *_i686 *_ppc64le *_s390x"
153153
build-verbosity = "3"
154154
environment = {LDFLAGS="-Wl,--strip-all"}
155+
# TODO: remove this once numpy 2.0 proper releases
156+
# and specify numpy 2.0 as a dependency in [build-system] requires in pyproject.toml
157+
before-build = "pip install numpy==2.0.0rc1"
155158
test-requires = "hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0"
156159
test-command = """
157160
PANDAS_CI='1' python -c 'import pandas as pd; \
@@ -160,7 +163,9 @@ test-command = """
160163
"""
161164

162165
[tool.cibuildwheel.windows]
163-
before-build = "pip install delvewheel"
166+
# TODO: remove this once numpy 2.0 proper releases
167+
# and specify numpy 2.0 as a dependency in [build-system] requires in pyproject.toml
168+
before-build = "pip install delvewheel numpy==2.0.0rc1"
164169
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"
165170

166171
[[tool.cibuildwheel.overrides]]

0 commit comments

Comments
 (0)