@@ -4,22 +4,22 @@ set -e -u -x
44ARCH=$( uname -m)
55export PLAT=manylinux_2_24_$ARCH
66
7- # Accurately check if Python version is 3.9 or greater
8- function is_python_version_ge_39 {
7+ # Accurately check if Python version is 3.10 or greater
8+ function is_python_version_ge_310 {
99 local pydir=" $1 "
10- if [[ $pydir =~ cp([0-9]+ )([0-9]+)-cp ]]; then
10+ if [[ $pydir =~ cp([0-9])([0-9]+)-cp ]]; then
1111 local version=" ${BASH_REMATCH[1]} .${BASH_REMATCH[2]} "
12- # Use sort with version sort flag to compare version against 3.9
13- if [[ $( echo -e " 3.9 \n$version " | sort -V | head -n1) == " 3.9 " ]]; then
14- return 0 # True, version is >= 3.9
12+ # Use sort with version sort flag to compare version against 3.10
13+ if [[ $( echo -e " 3.10 \n$version " | sort -V | head -n1) == " 3.10 " ]]; then
14+ return 0 # True, version is >= 3.10
1515 fi
1616 fi
17- return 1 # False, version is < 3.9
17+ return 1 # False, version is < 3.10
1818}
1919
20- # Compile wheels, only for CPython 3.9 +
20+ # Compile wheels, only for CPython 3.10 +
2121for PYDIR in /opt/python/* ; do
22- if is_python_version_ge_39 " $PYDIR " ; then
22+ if is_python_version_ge_310 " $PYDIR " ; then
2323 PYBIN=" $PYDIR /bin"
2424 " ${PYBIN} /pip" install -r /io/requirements.txt
2525 " ${PYBIN} /pip" wheel /io/ --no-deps -w wheelhouse/
@@ -33,9 +33,9 @@ for wheel in wheelhouse/*.whl; do
3333 fi
3434done
3535
36- # Install packages and test, only for CPython 3.9 +
36+ # Install packages and test, only for CPython 3.10 +
3737for PYDIR in /opt/python/* ; do
38- if is_python_version_ge_39 " $PYDIR " ; then
38+ if is_python_version_ge_310 " $PYDIR " ; then
3939 PYBIN=" $PYDIR /bin"
4040 " ${PYBIN} /pip" install plotpy --no-index -f /io/wheelhouse
4141 (cd " $HOME " ; INSTDIR=$( " ${PYBIN} /python" -c " import plotpy, os.path as osp; print(osp.dirname(plotpy.__file__))" ) ; export QT_QPA_PLATFORM=offscreen; " ${PYBIN} /pytest" " $INSTDIR " )
0 commit comments