[pypy-commit] cffi default: If we don't know the version number of setuptools, we try to set
arigo
pypy.commits at gmail.com
Mon Aug 22 11:40:49 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
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):
More information about the pypy-commit
mailing list