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

The Python2 Windows buildbot did not like _sha1.
This commit is contained in:
Mitchell Stokes 2017-01-05 20:17:36 -08:00
parent de598d966b
commit 2fa4ef1c7e
2 changed files with 4 additions and 4 deletions

View File

@ -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):

View File

@ -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'):