makepanda: Python 3.8 no longer has d/m SOABI flags

This commit is contained in:
rdb 2019-08-14 15:07:23 +02:00
parent 0e27f19d94
commit 9fac30b3e8
2 changed files with 6 additions and 0 deletions

View File

@ -3393,6 +3393,9 @@ def GetPythonABI():
soabi = 'cpython-%d%d' % (sys.version_info[:2])
if sys.version_info >= (3, 8):
return soabi
debug_flag = sysconfig.get_config_var('Py_DEBUG')
if (debug_flag is None and hasattr(sys, 'gettotalrefcount')) or debug_flag:
soabi += 'd'

View File

@ -29,6 +29,9 @@ def get_abi_tag():
soabi = 'cp%d%d' % (sys.version_info[:2])
if sys.version_info >= (3, 8):
return soabi
debug_flag = get_config_var('Py_DEBUG')
if (debug_flag is None and hasattr(sys, 'gettotalrefcount')) or debug_flag:
soabi += 'd'