summaryrefslogtreecommitdiff
path: root/cffi/setuptools_ext.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2016-08-22 17:26:43 +0200
committerArmin Rigo <arigo@tunes.org>2016-08-22 17:26:43 +0200
commite1b333b53770132028c13d2b57dfb177a6f0cca8 (patch)
treec4bfa84efb1efab28d25bf2a59f617e81239ff6b /cffi/setuptools_ext.py
parent024968a60f625413482ee698eb6e1e01ee2d7ccf (diff)
downloadcffi-e1b333b53770132028c13d2b57dfb177a6f0cca8.tar.gz
Remove the extra checks, which should be unnecessary and possibly cause
more confusion.
Diffstat (limited to 'cffi/setuptools_ext.py')
-rw-r--r--cffi/setuptools_ext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cffi/setuptools_ext.py b/cffi/setuptools_ext.py
index a579285..6ec11ba 100644
--- a/cffi/setuptools_ext.py
+++ b/cffi/setuptools_ext.py
@@ -75,7 +75,7 @@ def _set_py_limited_api(Extension, kwds):
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])