Commits

Marc Abramowitz committed 8144e34

For python < 2.7, import distutils.sysconfig instead of sysconfig

  • Participants
  • Parent commits cdb1972

Comments (0)

Files changed (1)

File wheel/bdist_wheel.py

 import hashlib
 import os
 import sys
-import sysconfig
+
+try:
+    import sysconfig
+except ImportError:
+    # Python < 2.7
+    import distutils.sysconfig as sysconfig
+
 import pkg_resources
 
 from shutil import rmtree