diff --git a/tests/test_supported_wheels.sh b/tests/test_supported_wheels.sh index 82467413..001b6cf4 100644 --- a/tests/test_supported_wheels.sh +++ b/tests/test_supported_wheels.sh @@ -30,7 +30,7 @@ fi py_impl=$($PYTHON_EXE -c 'import platform; print(platform.python_implementation())') if [ "$py_impl" == 'CPython' ] && [ $(uname) == 'Darwin' ]; then our_ver=$($PYTHON_EXE -c 'import sys; print("{}{}".format(*sys.version_info[:2]))') - our_arch=$($PYTHON_EXE -c 'import os; print(os.uname().machine)') + our_tag=$($PYTHON_EXE -c 'import sysconfig; print(sysconfig.get_platform().replace("-","_").replace(".","_"))') other_arch=$($PYTHON_EXE -c 'import os; print("x86_64" if os.uname().machine == "arm64" else "x86_64")') other_ver=$([ "$our_ver" == "37" ] && echo "36" || echo "37") # Python <= 3.7 needs m for API tag.