We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0fd60c commit 5dddf7fCopy full SHA for 5dddf7f
pkg_resources/__init__.py
@@ -377,11 +377,7 @@ def get_build_platform():
377
XXX Currently this is the same as ``distutils.util.get_platform()``, but it
378
needs some hacks for Linux and Mac OS X.
379
"""
380
- try:
381
- # Python 2.7 or >=3.2
382
- from sysconfig import get_platform
383
- except ImportError:
384
- from distutils.util import get_platform
+ from sysconfig import get_platform
385
386
plat = get_platform()
387
if sys.platform == "darwin" and not plat.startswith('macosx-'):
0 commit comments