File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -159,16 +159,18 @@ jobs:
159159
160160 - name : Build an abi3 wheel
161161 shell : bash
162+ env :
163+ # https://github.com/actions/setup-python/issues/26
164+ MACOSX_DEPLOYMENT_TARGET : 10.9
165+ DIST_EXTRA_CONFIG : /tmp/build-opts.cfg
162166 run : |
163167 set -e
164168 cd examples/rust_with_cffi/
165169 python --version
166- pip install -U wheel
167- python setup.py bdist_wheel --py-limited-api=cp39
170+ pip install -U build cffi wheel
171+ echo -e "[bdist_wheel]\npy_limited_api=cp39" > $DIST_EXTRA_CONFIG
172+ python -m build --no-isolation
168173 ls -la dist/
169- env :
170- # https://github.com/actions/setup-python/issues/26
171- MACOSX_DEPLOYMENT_TARGET : 10.9
172174
173175 # Now we switch to a differnet Python version and ensure we can install
174176 # the wheel we just built.
@@ -225,8 +227,10 @@ jobs:
225227 build-pip install cffi wheel "setuptools>=62.4"
226228 cross-expose cffi
227229 pip install wheel
228- pip install -e ../../
229- python setup.py bdist_wheel --py-limited-api=cp37
230+ pip install build cffi -e ../../
231+ export DIST_EXTRA_CONFIG=/tmp/build-opts.cfg
232+ echo -e "[bdist_wheel]\npy_limited_api=cp37" > $DIST_EXTRA_CONFIG
233+ python -m build
230234 ls -la dist/
231235 ' > build-wheels.sh
232236
You can’t perform that action at this time.
0 commit comments