@@ -24,17 +24,24 @@ for PYTHON in /opt/python/*/bin/python; do
2424 $PYTHON $MY_DIR /manylinux-check.py ${AUDITWHEEL_POLICY} ${AUDITWHEEL_ARCH}
2525 # Make sure that SSL cert checking works
2626 $PYTHON $MY_DIR /ssl-check.py
27- # Make sure sqlite3 module can be loaded properly and is the manylinux version one
28- # c.f. https://github.com/pypa/manylinux/issues/1030
29- $PYTHON -c ' import sqlite3; print(sqlite3.sqlite_version); assert sqlite3.sqlite_version_info[0:2] >= (3, 34)'
30- # pythonx.y & pipx.y shall be available directly in PATH
27+ IMPLEMENTATION=$( ${PYTHON} -c " import sys; print(sys.implementation.name)" )
3128 PYVERS=$( ${PYTHON} -c " import sys; print('.'.join(map(str, sys.version_info[:2])))" )
32- LINK_VERSION=$( python${PYVERS} -V)
29+ if [ " ${IMPLEMENTATION} " == " pypy" ]; then
30+ LINK_PREFIX=pypy
31+ else
32+ LINK_PREFIX=python
33+ # Make sure sqlite3 module can be loaded properly and is the manylinux version one
34+ # c.f. https://github.com/pypa/manylinux/issues/1030
35+ $PYTHON -c ' import sqlite3; print(sqlite3.sqlite_version); assert sqlite3.sqlite_version_info[0:2] >= (3, 34)'
36+ # pipx.y shall be available directly in PATH
37+ LINK_VERSION=$( pip${PYVERS} -V)
38+ REAL_VERSION=$( ${PYTHON} -m pip -V)
39+ test " ${LINK_VERSION%% from * } " = " ${REAL_VERSION%% from * } "
40+ fi
41+ # pythonx.y or pypyx.y shall be available directly in PATH
42+ LINK_VERSION=$( ${LINK_PREFIX}${PYVERS} -V)
3343 REAL_VERSION=$( ${PYTHON} -V)
3444 test " ${LINK_VERSION} " = " ${REAL_VERSION} "
35- LINK_VERSION=$( pip${PYVERS} -V)
36- REAL_VERSION=$( ${PYTHON} -m pip -V)
37- test " ${LINK_VERSION%% from * } " = " ${REAL_VERSION%% from * } "
3845done
3946
4047# minimal tests for tools that should be present
0 commit comments