@@ -17,19 +17,25 @@ export FINUFFT_DIR=$(pwd)
1717# Needed for auditwheel to find the dynamic libraries
1818export LD_LIBRARY_PATH=${FINUFFT_DIR} /lib:${LD_LIBRARY_PATH}
1919
20- pys=(/opt/python/* /bin)
21-
22- # Filter out old Python versions
23- pys=(${pys[@]//* 27*/ } )
24- pys=(${pys[@]//* 34*/ } )
25- pys=(${pys[@]//* 35*/ } )
26- pys=(${pys[@]//* pp39-pypy39_pp73*/ } )
20+ # Explicitly list Python versions to build
21+ versions=(" cp36-cp36m"
22+ " cp37-cp37m"
23+ " cp38-cp38"
24+ " cp39-cp39"
25+ " cp310-cp310"
26+ " pp37-pypy37_pp73"
27+ " pp38-pypy38_pp73" )
28+
29+ pys=()
30+ for version in " ${versions[@]} " ; do
31+ pys+=(" /opt/python/${version} /bin" )
32+ done
2733
2834# build wheel
29- for PYBIN in " ${pys[@]} " ; do
30- " ${PYBIN } /pip" install --upgrade pip
31- " ${PYBIN } /pip" install auditwheel wheel twine numpy
32- " ${PYBIN } /pip" wheel ./python -w python/wheelhouse
35+ for pybin in " ${pys[@]} " ; do
36+ " ${pybin } /pip" install --upgrade pip
37+ " ${pybin } /pip" install auditwheel wheel twine numpy
38+ " ${pybin } /pip" wheel ./python -w python/wheelhouse
3339done
3440
3541# fix wheel
@@ -38,8 +44,8 @@ for whl in python/wheelhouse/finufft-*.whl; do
3844done
3945
4046# test wheel
41- for PYBIN in " ${pys[@]} " ; do
42- " ${PYBIN } /pip" install finufft -f ./python/wheelhouse/
43- " ${PYBIN } /python" ./python/test/run_accuracy_tests.py
44- " ${PYBIN } /python" ./python/examples/simple1d1.py
47+ for pybin in " ${pys[@]} " ; do
48+ " ${pybin } /pip" install finufft -f ./python/wheelhouse/
49+ " ${pybin } /python" ./python/test/run_accuracy_tests.py
50+ " ${pybin } /python" ./python/examples/simple1d1.py
4551done
0 commit comments