File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,13 @@ jobs:
142142 shell : bash -el {0}
143143 run : echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV"
144144
145+ # TODO: Remove this and installing build deps in cibw_before_build.sh
146+ # after NumPy can be built with a released Cython
147+ - name : Define CIBW_BUILD_FRONTEND environment variable
148+ if : ${{ matrix.python[0] == 'cp313t' }}
149+ run : |
150+ echo "CIBW_BUILD_FRONTEND='pip; args: --no-build-isolation'" >> "$GITHUB_ENV"
151+
145152 - name : Build wheels
146153147154 with :
Original file line number Diff line number Diff line change @@ -159,6 +159,12 @@ test-command = """
159159before-build = " pip install delvewheel"
160160repair-wheel-command = " delvewheel repair -w {dest_dir} {wheel}"
161161
162+ [tool .cibuildwheel .linux ]
163+ before-build = " bash {project}/scripts/cibw_before_build.sh"
164+
165+ [tool .cibuildwheel .macos ]
166+ before-build = " bash {project}/scripts/cibw_before_build.sh"
167+
162168[[tool .cibuildwheel .overrides ]]
163169select = " *-musllinux*"
164170before-test = " apk update && apk add musl-locales"
Original file line number Diff line number Diff line change 1+ # TODO: delete along with enabling build isolation by unsetting
2+ # CIBW_BUILD_FRONTEND when scipy is buildable under free-threaded
3+ # python with a released version of cython
4+ FREE_THREADED_BUILD=" $( python -c " import sysconfig; print(bool(sysconfig.get_config_var('Py_GIL_DISABLED')))" ) "
5+ if [[ $FREE_THREADED_BUILD == " True" ]]; then
6+ python -m pip install -U pip
7+ python -m pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy cython
8+ python -m pip install ninja meson-python
9+ fi
You can’t perform that action at this time.
0 commit comments