mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -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,10 +3327,14 @@ def SetOrigExt(x, v):
|
|||||||
ORIG_EXT[x] = v
|
ORIG_EXT[x] = v
|
||||||
|
|
||||||
def GetExtensionSuffix():
|
def GetExtensionSuffix():
|
||||||
|
if CrossCompiling():
|
||||||
|
return '.{0}.so'.format(GetPythonABI())
|
||||||
|
else:
|
||||||
import _imp
|
import _imp
|
||||||
return _imp.extension_suffixes()[0]
|
return _imp.extension_suffixes()[0]
|
||||||
|
|
||||||
def GetPythonABI():
|
def GetPythonABI():
|
||||||
|
if not CrossCompiling():
|
||||||
soabi = sysconfig.get_config_var('SOABI')
|
soabi = sysconfig.get_config_var('SOABI')
|
||||||
if soabi:
|
if soabi:
|
||||||
return soabi
|
return soabi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user