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:
159
159
160
160
- name : Build an abi3 wheel
161
161
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
162
166
run : |
163
167
set -e
164
168
cd examples/rust_with_cffi/
165
169
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
168
173
ls -la dist/
169
- env :
170
- # https://github.com/actions/setup-python/issues/26
171
- MACOSX_DEPLOYMENT_TARGET : 10.9
172
174
173
175
# Now we switch to a differnet Python version and ensure we can install
174
176
# the wheel we just built.
@@ -225,8 +227,10 @@ jobs:
225
227
build-pip install cffi wheel "setuptools>=62.4"
226
228
cross-expose cffi
227
229
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
230
234
ls -la dist/
231
235
' > build-wheels.sh
232
236
You can’t perform that action at this time.
0 commit comments