Browse Source

makewheel/deploy-ng: Try import cmath instead of _sha1 for get_python_ext_module_dir()

The Python2 Windows buildbot did not like _sha1.
Mitchell Stokes 9 years ago
parent
commit
2fa4ef1c7e
2 changed files with 4 additions and 4 deletions
  1. 2 2
      direct/src/showutil/dist.py
  2. 2 2
      makepanda/makewheel.py

+ 2 - 2
direct/src/showutil/dist.py

@@ -41,8 +41,8 @@ def find_packages(whlfile):
 
 
 def get_python_ext_module_dir():
-    import _sha1
-    return os.path.dirname(_sha1.__file__)
+    import cmath
+    return os.path.dirname(cmath.__file__)
 
 
 class build(distutils.command.build.build):

+ 2 - 2
makepanda/makewheel.py

@@ -81,8 +81,8 @@ def is_fat_file(path):
 
 
 def get_python_ext_module_dir():
-    import _sha1
-    return os.path.dirname(_sha1.__file__)
+    import cmath
+    return os.path.dirname(cmath.__file__)
 
 
 if sys.platform in ('win32', 'cygwin'):