mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
makepanda: Don't use SOABI from config vars when cross-compiling
[skip ci]
This commit is contained in:
parent
af6230cfda
commit
954bc75314
@ -3327,13 +3327,17 @@ def SetOrigExt(x, v):
|
||||
ORIG_EXT[x] = v
|
||||
|
||||
def GetExtensionSuffix():
|
||||
import _imp
|
||||
return _imp.extension_suffixes()[0]
|
||||
if CrossCompiling():
|
||||
return '.{0}.so'.format(GetPythonABI())
|
||||
else:
|
||||
import _imp
|
||||
return _imp.extension_suffixes()[0]
|
||||
|
||||
def GetPythonABI():
|
||||
soabi = sysconfig.get_config_var('SOABI')
|
||||
if soabi:
|
||||
return soabi
|
||||
if not CrossCompiling():
|
||||
soabi = sysconfig.get_config_var('SOABI')
|
||||
if soabi:
|
||||
return soabi
|
||||
|
||||
soabi = 'cpython-%d%d' % (sys.version_info[:2])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user