Browse Source

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

rdb 6 years ago
parent
commit
9fac30b3e8
2 changed files with 6 additions and 0 deletions
  1. 3 0
      makepanda/makepandacore.py
  2. 3 0
      makepanda/makewheel.py

+ 3 - 0
makepanda/makepandacore.py

@@ -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'

+ 3 - 0
makepanda/makewheel.py

@@ -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'