| 1 |
set -ex |
| 2 |
|
| 3 |
mkdir -p dist |
| 4 |
|
| 5 |
MACHINE=$(/opt/python/cp311-cp311/bin/python3 -c 'import platform; print(platform.machine())') |
| 6 |
|
| 7 |
function build_wheel() { |
| 8 |
/opt/python/$1/bin/pip install build |
| 9 |
/opt/python/$1/bin/python -m build --wheel |
| 10 |
} |
| 11 |
|
| 12 |
build_wheel cp310-cp310 |
| 13 |
build_wheel cp311-cp311 |
| 14 |
build_wheel cp312-cp312 |
| 15 |
build_wheel cp313-cp313 |
| 16 |
build_wheel cp314-cp314 |
| 17 |
build_wheel cp314-cp314t |
| 18 |
|
| 19 |
cd dist |
| 20 |
|
| 21 |
for f in ./*-linux*_${MACHINE}*; |
| 22 |
do if [ -f $f ]; then auditwheel repair $f -w . ; rm $f; fi; |
| 23 |
done |