Skip to content

Commit

Permalink
Replace distutils.sysconfig call with sysconfig
Browse files Browse the repository at this point in the history
_osx_support.get_platform_osx() only uses three configs:

* MACOSX_DEPLOYMENT_TARGET
* CFLAGS
* _OSX_SUPPORT_INITIAL_CFLAGS

All of these should be identical from both sources.
  • Loading branch information
uranusjr committed Nov 7, 2020
1 parent 61b2e08 commit 85daf0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,10 +805,10 @@ def _get_host_platform():
if m:
release = m.group()
elif osname[:6] == "darwin":
import distutils.sysconfig
import sysconfig
import _osx_support
osname, release, machine = _osx_support.get_platform_osx(
distutils.sysconfig.get_config_vars(),
sysconfig.get_config_vars(),
osname, release, machine,
)

Expand Down

0 comments on commit 85daf0b

Please sign in to comment.