Browse Source

makepanda: fix ABI flags not being stripped from PYTHONVERSION

rdb 5 years ago
parent
commit
7f11dc19cd
2 changed files with 2 additions and 2 deletions
  1. 1 1
      makepanda/makepackage.py
  2. 1 1
      makepanda/makepandacore.py

+ 1 - 1
makepanda/makepackage.py

@@ -867,7 +867,7 @@ def MakeInstallerFreeBSD(version, runtime=False, python_versions=[], **kwargs):
         oscmd("rm -f %s/tmp/python_dep" % outputdir)
         oscmd("rm -f %s/tmp/python_dep" % outputdir)
 
 
         if "PYTHONVERSION" in SDK:
         if "PYTHONVERSION" in SDK:
-            pyver_nodot = SDK["PYTHONVERSION"][6:].replace('.', '')
+            pyver_nodot = SDK["PYTHONVERSION"][6:].rstrip('dmu').replace('.', '')
         else:
         else:
             pyver_nodot = "%d%d" % (sys.version_info[:2])
             pyver_nodot = "%d%d" % (sys.version_info[:2])
 
 

+ 1 - 1
makepanda/makepandacore.py

@@ -3586,7 +3586,7 @@ def GetCurrentPythonVersionInfo():
 
 
     from distutils.sysconfig import get_python_lib
     from distutils.sysconfig import get_python_lib
     return {
     return {
-        "version": SDK["PYTHONVERSION"][6:],
+        "version": SDK["PYTHONVERSION"][6:].rstrip('dmu'),
         "soabi": GetPythonABI(),
         "soabi": GetPythonABI(),
         "ext_suffix": GetExtensionSuffix(),
         "ext_suffix": GetExtensionSuffix(),
         "executable": sys.executable,
         "executable": sys.executable,