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