File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -161,16 +161,33 @@ jobs:
161
161
3.10) pkgvers=1.21.4;;
162
162
*) pkgvers=1.23.3;;
163
163
esac
164
+ if [ "${pkgvers}" = "1.23.3" ]; then
165
+ # Dirty solution to get NumPy headers for Python 3.11.
166
+ case "${{ matrix.arch }}" in
167
+ x64) kwds="--plat=manylinux_2_17_x86_64" ;;
168
+ x86) kwds="--plat=manylinux_2_17_i686" ;;
169
+ esac
170
+ pip download --no-deps ${kwds} "numpy==1.23.3"
171
+ oldpkgfile=$(ls *.whl | head -n1)
172
+ newpkgfile=$(echo "${oldpkgfile}" | sed 's/manylinux_2_17/linux/')
173
+ mv "${oldpkgfile}" "${newpkgfile}"
174
+ pip install "${newpkgfile}"
175
+ rm "${newpkgfile}"
176
+ fi
164
177
pip install "numpy == ${pkgvers}"
165
178
-
166
179
name : Build wheel
167
180
run : |
168
181
sitepkgdir=$(pip show numpy 2>/dev/null | grep Location: | cut -d' ' -f2)
169
182
export GEOS_DIR="${GITHUB_WORKSPACE}/${{ env.PKGDIR }}/extern"
170
183
export NUMPY_INCLUDE_PATH=${sitepkgdir}/numpy/core/include
184
+ if [ "${{ matrix.python-version }}" = "3.11" ]; then
185
+ kwds="--no-build-isolation"
186
+ pip install setuptools wheel "cython >= 0.29, < 3.1"
187
+ fi
171
188
cd ${{ env.PKGDIR }}
172
189
python setup.py sdist
173
- pip wheel -w dist --no-deps dist/*.zip
190
+ pip wheel -w dist --no-deps ${kwds} dist/*.zip
174
191
-
175
192
name : Upload build artifacts
176
193
uses : actions/upload-artifact@v1
You can’t perform that action at this time.
0 commit comments