Author: Armin Rigo <[email protected]>
Branch:
Changeset: r2744:776a85f46170
Date: 2016-08-22 17:26 +0200
http://bitbucket.org/cffi/cffi/changeset/776a85f46170/
Log: Remove the extra checks, which should be unnecessary and possibly
cause more confusion.
diff --git a/cffi/setuptools_ext.py b/cffi/setuptools_ext.py
--- a/cffi/setuptools_ext.py
+++ b/cffi/setuptools_ext.py
@@ -75,7 +75,7 @@
Do not alter the setting if it already exists.
Setuptools takes care of ignoring the flag on Python 2 and PyPy.
"""
- if Extension.__module__.startswith('setuptools.') and not 'py_limited_api'
in kwds:
+ if 'py_limited_api' not in kwds:
import setuptools
try:
setuptools_major_version =
int(setuptools.__version__.partition('.')[0])
diff --git a/testing/cffi0/test_zintegration.py
b/testing/cffi0/test_zintegration.py
--- a/testing/cffi0/test_zintegration.py
+++ b/testing/cffi0/test_zintegration.py
@@ -160,9 +160,6 @@
kwds = _set_py_limited_api(Extension, {})
assert kwds['py_limited_api'] == True
- kwds = _set_py_limited_api(Extension.__base__, {})
- assert not kwds
-
setuptools.__version__ = '25.0'
kwds = _set_py_limited_api(Extension, {})
assert not kwds
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit