Skip to content

Commit

Permalink
fix: use sysconfig rather than distutils in tests/manylinux-check.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed May 13, 2024
1 parent 8afd036 commit 3001062
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/manylinux-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

def is_manylinux1_compatible():
# Only Linux, and only x86-64 / i686
from distutils.util import get_platform
from sysconfig import get_platform
if get_platform() not in ["linux-x86_64", "linux-i686"]:
return False

Expand All @@ -23,7 +23,7 @@ def is_manylinux1_compatible():

def is_manylinux2010_compatible():
# Only Linux, and only x86-64 / i686
from distutils.util import get_platform
from sysconfig import get_platform
if get_platform() not in ["linux-x86_64", "linux-i686"]:
return False

Expand All @@ -41,7 +41,7 @@ def is_manylinux2010_compatible():

def is_manylinux2014_compatible():
# Only Linux, and only supported architectures
from distutils.util import get_platform
from sysconfig import get_platform
if get_platform() not in [
"linux-x86_64",
"linux-i686",
Expand Down

0 comments on commit 3001062

Please sign in to comment.