makewheel: Use _ctypes instead of cmath for get_python_ext_module_dir()

Also switch back to using __file__ instead of inspect.
This commit is contained in:
Mitchell Stokes 2017-01-06 08:07:20 -08:00 committed by GitHub
parent a5bea8f8b0
commit 40c23e5cf1

View File

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