Skip to content

Commit

Permalink
Use the actual platform's tag for supported wheel tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Oct 22, 2024
1 parent 9b48e07 commit 80da582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_supported_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 80da582

Please sign in to comment.