mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -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
|
ORIG_EXT[x] = v
|
||||||
|
|
||||||
def GetExtensionSuffix():
|
def GetExtensionSuffix():
|
||||||
import _imp
|
if CrossCompiling():
|
||||||
return _imp.extension_suffixes()[0]
|
return '.{0}.so'.format(GetPythonABI())
|
||||||
|
else:
|
||||||
|
import _imp
|
||||||
|
return _imp.extension_suffixes()[0]
|
||||||
|
|
||||||
def GetPythonABI():
|
def GetPythonABI():
|
||||||
soabi = sysconfig.get_config_var('SOABI')
|
if not CrossCompiling():
|
||||||
if soabi:
|
soabi = sysconfig.get_config_var('SOABI')
|
||||||
return soabi
|
if soabi:
|
||||||
|
return soabi
|
||||||
|
|
||||||
soabi = 'cpython-%d%d' % (sys.version_info[:2])
|
soabi = 'cpython-%d%d' % (sys.version_info[:2])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user