| 1 | #!/bin/bash |
| 2 | #assumes image based on manylinux2014 + extras (cmake3, libcrypto, etc) |
| 3 | set -ex |
| 4 | |
| 5 | /opt/python/cp39-cp39/bin/python ./continuous-delivery/update-version.py |
| 6 | |
| 7 | /opt/python/cp39-cp39/bin/python -m build |
| 8 | auditwheel repair --plat manylinux2014_x86_64 dist/awscrt-*cp39*.whl |
| 9 | |
| 10 | /opt/python/cp310-cp310/bin/python -m build |
| 11 | auditwheel repair --plat manylinux2014_x86_64 dist/awscrt-*cp310*.whl |
| 12 | |
| 13 | /opt/python/cp311-cp311/bin/python -m build |
| 14 | auditwheel repair --plat manylinux2014_x86_64 dist/awscrt-*cp311*.whl |
| 15 | |
| 16 | # Don't need to build wheels for Python 3.12, it works with the 3.11 stable ABI wheel |
| 17 | |
| 18 | # We are using the Python 3.13 stable ABI from Python 3.13 onwards because of deprecated functions. |
| 19 | /opt/python/cp313-cp313/bin/python -m build |
| 20 | auditwheel repair --plat manylinux2014_x86_64 dist/awscrt-*cp313*.whl |
| 21 | |
| 22 | # The free-threaded build does not currently support the Limited C API or the stable ABI. Built them separately |
| 23 | /opt/python/cp314-cp314t/bin/python -m build |
| 24 | auditwheel repair --plat manylinux2014_x86_64 dist/awscrt-*cp314t*.whl |
| 25 | |
| 26 | rm dist/*.whl |
| 27 | cp -rv wheelhouse/* dist/ |
| 28 | |
| 29 | #now you just need to run twine (that's in a different script) |