mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
makepanda: Force choose correct extension suffix for Windows
Even when cross-compiling for 32-bit using a 64-bit copy of Python, and vice versa
This commit is contained in:
parent
ac3aa64d33
commit
ad187b29f8
@ -3489,11 +3489,17 @@ def SetOrigExt(x, v):
|
||||
ORIG_EXT[x] = v
|
||||
|
||||
def GetExtensionSuffix():
|
||||
if sys.version_info >= (3, 0):
|
||||
target = GetTarget()
|
||||
|
||||
if sys.version_info >= (3, 5) and target == 'windows':
|
||||
if GetTargetArch() == 'x64':
|
||||
return '.cp%d%d-win_amd64.pyd' % (sys.version_info[:2])
|
||||
else:
|
||||
return '.cp%d%d-win32.pyd' % (sys.version_info[:2])
|
||||
elif sys.version_info >= (3, 0):
|
||||
import _imp
|
||||
return _imp.extension_suffixes()[0]
|
||||
|
||||
target = GetTarget()
|
||||
if target == 'windows':
|
||||
return '.pyd'
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user