@@ -120,8 +120,8 @@ jobs:
120120 PYO3_CROSS_LIB_DIR : /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib
121121 run : |
122122 cd examples/namespace_package
123- pip install wheel
124- python setup.py bdist_wheel
123+ pip install build wheel
124+ python -m build --no-isolation
125125 ls -l dist/
126126 pip install --force-reinstall dist/namespace_package*_universal2.whl
127127 cd -
@@ -269,11 +269,13 @@ jobs:
269269 CARGO : cross
270270 CARGO_BUILD_TARGET : aarch64-unknown-linux-gnu
271271 PYO3_CROSS_LIB_DIR : /opt/python/cp38-cp38/lib
272+ DIST_EXTRA_CONFIG : /tmp/build-opts.cfg
272273 run : |
273274 cd examples/namespace_package
274275 docker build -t cross-pyo3:aarch64-unknown-linux-gnu .
275- python -m pip install wheel
276- python setup.py bdist_wheel --plat-name manylinux2014_aarch64
276+ python -m pip install build wheel
277+ echo -e "[bdist_wheel]\nplat_name=manylinux2014_aarch64" > $DIST_EXTRA_CONFIG
278+ python -m build --no-isolation
277279 ls -la dist/
278280279281 name : Install built wheel
@@ -313,12 +315,14 @@ jobs:
313315 CARGO : cargo-zigbuild
314316 CARGO_BUILD_TARGET : aarch64-unknown-linux-gnu
315317 PYO3_CROSS_LIB_DIR : /opt/python/cp38-cp38/lib
318+ DIST_EXTRA_CONFIG : /tmp/build-opts.cfg
316319 run : |
317320 mkdir -p $PYO3_CROSS_LIB_DIR
318321 docker cp -L $(docker create --rm quay.io/pypa/manylinux2014_aarch64:latest):/opt/python/cp38-cp38 /opt/python
319322 cd examples/namespace_package
320- python -m pip install wheel
321- python setup.py bdist_wheel --plat-name manylinux2014_aarch64
323+ python -m pip install build wheel
324+ echo -e "[bdist_wheel]\nplat_name=manylinux2014_aarch64" > $DIST_EXTRA_CONFIG
325+ python -m build --no-isolation
322326 ls -la dist/
323327324328 name : Install built wheel
0 commit comments