Skip to content

Commit

Permalink
Remove distutils.sysconfig dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsajip committed Jun 6, 2023
1 parent 6181c59 commit ffe7838
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions distlib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1908,9 +1908,13 @@ def get_host_platform():
if m:
release = m.group()
elif osname[:6] == 'darwin':
import _osx_support, distutils.sysconfig
import _osx_support
try:
from distutils import sysconfig
except ImportError:
import sysconfig
osname, release, machine = _osx_support.get_platform_osx(
distutils.sysconfig.get_config_vars(),
sysconfig.get_config_vars(),
osname, release, machine)

return '%s-%s-%s' % (osname, release, machine)
Expand Down

0 comments on commit ffe7838

Please sign in to comment.