[pypy-commit] cffi static-callback-embedding: Py3 fix
arigo
pypy.commits at gmail.com
Fri Jan 8 02:42:13 EST 2016
Author: Armin Rigo <arigo at tunes.org>
Branch: static-callback-embedding
Changeset: r2551:72802dce3d25
Date: 2016-01-08 08:41 +0100
http://bitbucket.org/cffi/cffi/changeset/72802dce3d25/
Log: Py3 fix
diff --git a/cffi/api.py b/cffi/api.py
--- a/cffi/api.py
+++ b/cffi/api.py
@@ -548,6 +548,8 @@
template = "python%d.%d"
pythonlib = (template %
(sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff))
+ if hasattr(sys, 'abiflags'):
+ pythonlib += sys.abiflags
libraries = kwds.get('libraries', [])
if pythonlib not in libraries:
kwds['libraries'] = libraries + [pythonlib]
More information about the pypy-commit
mailing list