aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/build_ext.py
diff options
context:
space:
mode:
authorDaniel Holth <dholth@fastmail.fm>2016-08-05 07:55:57 -0400
committerDaniel Holth <dholth@fastmail.fm>2016-08-05 07:55:57 -0400
commit702a4277768f0781e3d0a4cf770d29621f7f2cc3 (patch)
treee6a6745b76b741ec8963d38f962e3d0073a6177e /setuptools/command/build_ext.py
parentdab253cb72eb7c098393f985e32585e079607f66 (diff)
downloadexternal_python_setuptools-702a4277768f0781e3d0a4cf770d29621f7f2cc3.tar.gz
external_python_setuptools-702a4277768f0781e3d0a4cf770d29621f7f2cc3.tar.bz2
external_python_setuptools-702a4277768f0781e3d0a4cf770d29621f7f2cc3.zip
rename is_abi3 to py_limited_api
Diffstat (limited to 'setuptools/command/build_ext.py')
-rw-r--r--setuptools/command/build_ext.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py
index dad28999..7bb4d24c 100644
--- a/setuptools/command/build_ext.py
+++ b/setuptools/command/build_ext.py
@@ -104,7 +104,9 @@ class build_ext(_build_ext):
filename = _build_ext.get_ext_filename(self, fullname)
if fullname in self.ext_map:
ext = self.ext_map[fullname]
- if sys.version_info[0] != 2 and getattr(ext, 'is_abi3'):
+ if (sys.version_info[0] != 2
+ and getattr(ext, 'py_limited_api')
+ and get_abi3_suffix()):
from distutils.sysconfig import get_config_var
so_ext = get_config_var('SO')
filename = filename[:-len(so_ext)]