Author: Armin Rigo <[email protected]>
Branch:
Changeset: r2745:dcb62fcbd63d
Date: 2016-08-22 17:40 +0200
http://bitbucket.org/cffi/cffi/changeset/dcb62fcbd63d/
Log: If we don't know the version number of setuptools, we try to set
'py_limited_api' anyway. At worst, we get a warning.
diff --git a/cffi/setuptools_ext.py b/cffi/setuptools_ext.py
--- a/cffi/setuptools_ext.py
+++ b/cffi/setuptools_ext.py
@@ -82,7 +82,10 @@
if setuptools_major_version >= 26:
kwds['py_limited_api'] = True
except ValueError: # certain development versions of setuptools
- pass
+ # If we don't know the version number of setuptools, we
+ # try to set 'py_limited_api' anyway. At worst, we get a
+ # warning.
+ kwds['py_limited_api'] = True
return kwds
def _add_c_module(dist, ffi, module_name, source, source_extension, kwds):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit