Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r2612:ab31f1f18faf
Date: 2016-01-17 22:01 +0100
http://bitbucket.org/cffi/cffi/changeset/ab31f1f18faf/

Log:    Windows uses '_d' even though I'm pretty sure DEBUG_EXT is a Debian-
        only extension

diff --git a/cffi/api.py b/cffi/api.py
--- a/cffi/api.py
+++ b/cffi/api.py
@@ -557,14 +557,16 @@
         else:
             if sys.platform == "win32":
                 template = "python%d%d"
+                if hasattr(sys, 'gettotalrefcount'):
+                    template += '_d'
             else:
                 template = "python%d.%d"
+                if sysconfig.get_config_var('DEBUG_EXT'):
+                    template += sysconfig.get_config_var('DEBUG_EXT')
             pythonlib = (template %
                     (sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff))
             if hasattr(sys, 'abiflags'):
                 pythonlib += sys.abiflags
-            elif sysconfig.get_config_var('DEBUG_EXT'):
-                pythonlib += sysconfig.get_config_var('DEBUG_EXT')
         ensure('libraries', pythonlib)
         if sys.platform == "win32":
             ensure('extra_link_args', '/MANIFEST')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to