mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
makewheel/deploy-ng: Use inspect.getfile(cmath) instead of cmath.__file__ for get_python_ext_module_dir()
This commit is contained in:
parent
061a2745f9
commit
a5bea8f8b0
@ -46,7 +46,8 @@ def find_packages(whlfile):
|
||||
|
||||
def get_python_ext_module_dir():
|
||||
import cmath
|
||||
return os.path.dirname(cmath.__file__)
|
||||
import inspect
|
||||
return os.path.dirname(inspect.getfile(cmath))
|
||||
|
||||
|
||||
class build(distutils.command.build.build):
|
||||
|
@ -82,7 +82,8 @@ def is_fat_file(path):
|
||||
|
||||
def get_python_ext_module_dir():
|
||||
import cmath
|
||||
return os.path.dirname(cmath.__file__)
|
||||
import inspect
|
||||
return os.path.dirname(inspect.getfile(cmath))
|
||||
|
||||
|
||||
if sys.platform in ('win32', 'cygwin'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user