diff options
author | Daniel Holth <dholth@fastmail.fm> | 2016-08-05 07:55:57 -0400 |
---|---|---|
committer | Daniel Holth <dholth@fastmail.fm> | 2016-08-05 07:55:57 -0400 |
commit | 702a4277768f0781e3d0a4cf770d29621f7f2cc3 (patch) | |
tree | e6a6745b76b741ec8963d38f962e3d0073a6177e /setuptools/command/build_ext.py | |
parent | dab253cb72eb7c098393f985e32585e079607f66 (diff) | |
download | external_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.py | 4 |
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)] |