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:
parent
de598d966b
commit
2fa4ef1c7e
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Reference in New Issue