Author: Stefano Rivera <[email protected]>
Branch:
Changeset: r2610:b848a2fed6c7
Date: 2016-01-17 12:16 -0800
http://bitbucket.org/cffi/cffi/changeset/b848a2fed6c7/
Log: Support extensions for pydebug cpythons
diff --git a/cffi/api.py b/cffi/api.py
--- a/cffi/api.py
+++ b/cffi/api.py
@@ -565,6 +565,8 @@
(sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff))
if hasattr(sys, 'abiflags'):
pythonlib += sys.abiflags
+ elif hasattr(sys, 'gettotalrefcount'):
+ pythonlib += '_d'
ensure('libraries', pythonlib)
if sys.platform == "win32":
ensure('extra_link_args', '/MANIFEST')
diff --git a/testing/embedding/test_basic.py b/testing/embedding/test_basic.py
--- a/testing/embedding/test_basic.py
+++ b/testing/embedding/test_basic.py
@@ -4,10 +4,6 @@
from testing.udir import udir
import cffi
-if hasattr(sys, 'gettotalrefcount'):
- py.test.skip("tried hard and failed to have these tests run "
- "in a debug-mode python")
-
local_dir = os.path.dirname(os.path.abspath(__file__))
_link_error = '?'
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit