Skip to content

Commit 6dd0b00

Browse files
MAINT, CI: wheel build changes [wheel build]
* Additional modified backporting from gh-21000 Co-authored-by: Andrew Nelson <andyfaff@gmail.com>
1 parent 6d549b3 commit 6dd0b00

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/wheels.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,30 @@ jobs:
182182
fi
183183
echo "CIBW_REPAIR_WHEEL_COMMAND_MACOS=$CIBW" >> "$GITHUB_ENV"
184184
185+
- name: Inject environment variable for python dev version
186+
if: matrix.python[1] == '3.13'
187+
shell: bash
188+
run: |
189+
# For dev versions of python need to use wheels from scientific-python-nightly-wheels
190+
# When the python version is released please comment out this section, but do not remove
191+
# (there will soon be another dev version to target).
192+
DEPS0="pip install -U --pre numpy>=2.1.0rc1"
193+
DEPS1="pip install ninja meson-python pybind11 pythran cython"
194+
195+
CIBW="$DEPS0;$DEPS1;bash {project}/tools/wheels/cibw_before_build_linux.sh {project}"
196+
echo "CIBW_BEFORE_BUILD_LINUX=$CIBW" >> "$GITHUB_ENV"
197+
198+
CIBW="$DEPS0 && $DEPS1 && bash {project}/tools/wheels/cibw_before_build_win.sh {project}"
199+
echo "CIBW_BEFORE_BUILD_WINDOWS=$CIBW" >> "$GITHUB_ENV"
200+
201+
CIBW="$DEPS0;$DEPS1;bash {project}/tools/wheels/cibw_before_build_macos.sh {project}"
202+
echo "CIBW_BEFORE_BUILD_MACOS=$CIBW" >> "$GITHUB_ENV"
203+
204+
echo "CIBW_BEFORE_TEST=$DEPS0" >> "$GITHUB_ENV"
205+
206+
CIBW="pip; args: --no-build-isolation"
207+
echo "CIBW_BUILD_FRONTEND=$CIBW" >> "$GITHUB_ENV"
208+
185209
- name: Build wheels
186210
uses: pypa/cibuildwheel@v2.20.0
187211
env:

0 commit comments

Comments
 (0)