53
53
COMMIT_MSG=$(git log --no-merges -1)
54
54
RUN="0"
55
55
if [[ "$COMMIT_MSG" == *"[wheel build]"* ]]; then
56
- RUN="1"
56
+ RUN="1"
57
57
fi
58
58
echo "message=$RUN" >> $GITHUB_OUTPUT
59
59
echo github.ref ${{ github.ref }}
86
86
- [macos-14, macosx, arm64, openblas, "12.3"]
87
87
- [macos-14, macosx, arm64, accelerate, "14.0"]
88
88
- [windows-2019, win, AMD64, "", ""]
89
- python : [["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"], ["cp313", "3.13"]]
89
+ python : [["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"], ["cp313", "3.13"], ["cp313t", "3.13"] ]
90
90
# python[0] is used to specify the python versions made by cibuildwheel
91
91
92
92
env :
@@ -150,7 +150,7 @@ jobs:
150
150
echo "CIBW_ENVIRONMENT=$CIBW" >> "$GITHUB_ENV"
151
151
152
152
echo "REPAIR_PATH=$LIB_PATH" >> "$GITHUB_ENV"
153
-
153
+
154
154
PREFIX=DYLD_LIBRARY_PATH="\$(dirname \$(gfortran --print-file-name libgfortran.dylib))"
155
155
# remove libgfortran from location used for linking (if any), to
156
156
# check wheel has bundled things correctly and all tests pass without
@@ -162,13 +162,13 @@ jobs:
162
162
{delocate_archs} -w {dest_dir} {wheel} && echo "-----------" &&\
163
163
delocate-listdeps -d {dest_dir}/*.whl && echo "-----------" &&\
164
164
$POSTFIX"
165
-
165
+
166
166
# Rename x86 Accelerate wheel to test on macOS 13 runner
167
167
if [[ ${{ matrix.buildplat[0] }} == 'macos-13' && ${{ matrix.buildplat[4] }} == '14.0' ]]; then
168
168
CIBW+=" && mv {dest_dir}/\$(basename {wheel}) \
169
169
{dest_dir}/\$(echo \$(basename {wheel}) | sed 's/14_0/13_0/')"
170
170
fi
171
-
171
+
172
172
# macos-arm64-openblas wheels that target macos-12 need a
173
173
# MACOS_DEPLOYMENT_TARGET of 12.3 otherwise delocate complains.
174
174
# Unclear of cause, possibly build tool related.
@@ -178,39 +178,44 @@ jobs:
178
178
if [[ ${{ matrix.buildplat[0] }} == 'macos-14' && ${{ matrix.buildplat[4] }} == '12.3' ]]; then
179
179
CIBW+=" && echo \$(ls {dest_dir}) && \
180
180
mv {dest_dir}/*.whl \$(find {dest_dir} -type f -name '*.whl' | sed 's/12_3/12_0/')"
181
- fi
181
+ fi
182
182
echo "CIBW_REPAIR_WHEEL_COMMAND_MACOS=$CIBW" >> "$GITHUB_ENV"
183
183
184
- - name : Inject environment variable for python dev version
185
- if : matrix.python[1] == '3.13'
184
+ # - name: Inject environment variable for python dev version
185
+ # if: ${{ matrix.python[1] == '3.14-dev'
186
+ # shell: bash
187
+ # run: |
188
+ # # For dev versions of python need to use wheels from scientific-python-nightly-wheels
189
+ # # When the python version is released please comment out this section, but do not remove
190
+ # # (there will soon be another dev version to target).
191
+ # DEPS0="pip install --pre -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy"
192
+ # DEPS1="pip install ninja meson-python pybind11 pythran cython"
193
+
194
+ # CIBW="$DEPS0;$DEPS1;bash {project}/tools/wheels/cibw_before_build_linux.sh {project}"
195
+ # echo "CIBW_BEFORE_BUILD_LINUX=$CIBW" >> "$GITHUB_ENV"
196
+
197
+ # CIBW="$DEPS0 && $DEPS1 && bash {project}/tools/wheels/cibw_before_build_win.sh {project}"
198
+ # echo "CIBW_BEFORE_BUILD_WINDOWS=$CIBW" >> "$GITHUB_ENV"
199
+
200
+ # CIBW="$DEPS0;$DEPS1;bash {project}/tools/wheels/cibw_before_build_macos.sh {project}"
201
+ # echo "CIBW_BEFORE_BUILD_MACOS=$CIBW" >> "$GITHUB_ENV"
202
+
203
+ # echo "CIBW_BEFORE_TEST=$DEPS0" >> "$GITHUB_ENV"
204
+
205
+ - name : Disable build isolation for python free-threaded version
206
+ if : endsWith(matrix.python[0], 't')
186
207
shell : bash
187
208
run : |
188
- # For dev versions of python need to use wheels from scientific-python-nightly-wheels
189
- # When the python version is released please comment out this section, but do not remove
190
- # (there will soon be another dev version to target).
191
- DEPS0="pip install --pre -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy"
192
- DEPS1="pip install ninja meson-python pybind11 pythran cython"
193
-
194
- CIBW="$DEPS0;$DEPS1;bash {project}/tools/wheels/cibw_before_build_linux.sh {project}"
195
- echo "CIBW_BEFORE_BUILD_LINUX=$CIBW" >> "$GITHUB_ENV"
196
-
197
- CIBW="$DEPS0 && $DEPS1 && bash {project}/tools/wheels/cibw_before_build_win.sh {project}"
198
- echo "CIBW_BEFORE_BUILD_WINDOWS=$CIBW" >> "$GITHUB_ENV"
199
-
200
- CIBW="$DEPS0;$DEPS1;bash {project}/tools/wheels/cibw_before_build_macos.sh {project}"
201
- echo "CIBW_BEFORE_BUILD_MACOS=$CIBW" >> "$GITHUB_ENV"
202
-
203
- echo "CIBW_BEFORE_TEST=$DEPS0" >> "$GITHUB_ENV"
204
-
205
209
CIBW="pip; args: --no-build-isolation"
206
- echo "CIBW_BUILD_FRONTEND=$CIBW" >> "$GITHUB_ENV"
210
+ echo "CIBW_BUILD_FRONTEND=$CIBW" >> "$GITHUB_ENV"
207
211
208
212
- name : Build wheels
209
- uses : pypa/cibuildwheel@d4a2945fcc8d13f20a1b99d461b8e844d5fc6e23 # v2.21.1
213
+ uses : pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3
210
214
env :
211
215
CIBW_BUILD : ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}*
212
216
CIBW_ARCHS : ${{ matrix.buildplat[2] }}
213
217
CIBW_PRERELEASE_PYTHONS : True
218
+ CIBW_FREE_THREADED_SUPPORT : True
214
219
215
220
- name : Rename macOS wheels
216
221
if : startsWith( matrix.buildplat[0], 'macos-' )
@@ -255,7 +260,7 @@ jobs:
255
260
# an upload to:
256
261
#
257
262
# https://anaconda.org/scientific-python-nightly-wheels/scipy
258
- #
263
+ #
259
264
# Pushes to a maintenance branch that contain '[wheel build]' will
260
265
# cause wheels to be built and uploaded to:
261
266
#
0 commit comments