Skip to content

Commit 1d3fe5f

Browse files
committed
Remove other direct uses of 'setup.py' in workflows/ci.yml
1 parent f4bd749 commit 1d3fe5f

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)