From 2fa4ef1c7ececcb4f0c0e0f37e01523672266cc0 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Thu, 5 Jan 2017 20:17:36 -0800 Subject: [PATCH] makewheel/deploy-ng: Try import cmath instead of _sha1 for get_python_ext_module_dir() The Python2 Windows buildbot did not like _sha1. --- direct/src/showutil/dist.py | 4 ++-- makepanda/makewheel.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/direct/src/showutil/dist.py b/direct/src/showutil/dist.py index 9cf30f5693..b0933db143 100644 --- a/direct/src/showutil/dist.py +++ b/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): diff --git a/makepanda/makewheel.py b/makepanda/makewheel.py index 8f04e2cb81..d1e67b185e 100644 --- a/makepanda/makewheel.py +++ b/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'):