aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/extension.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-08-19 16:00:56 -0400
committerGitHub <noreply@github.com>2016-08-19 16:00:56 -0400
commit6ae38d0538ceaa9c0360f7f04956acd5e138656d (patch)
treecf69b08b3d42c91165fddba2cc63d836d7db73d8 /setuptools/extension.py
parent7c32dac163b1d8f1256caf0a4e42ed19ff74d150 (diff)
parentfc6050ad4c1481be0a1aba1f056e76aa8be50039 (diff)
downloadexternal_python_setuptools-6ae38d0538ceaa9c0360f7f04956acd5e138656d.tar.gz
external_python_setuptools-6ae38d0538ceaa9c0360f7f04956acd5e138656d.tar.bz2
external_python_setuptools-6ae38d0538ceaa9c0360f7f04956acd5e138656d.zip
Merge pull request #718 from dholth/master
use abi3 extension if Extension().is_abi3
Diffstat (limited to 'setuptools/extension.py')
-rw-r--r--setuptools/extension.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/setuptools/extension.py b/setuptools/extension.py
index 6b9c19f8..da94c3fa 100644
--- a/setuptools/extension.py
+++ b/setuptools/extension.py
@@ -36,6 +36,10 @@ have_pyrex = _have_cython
class Extension(_Extension):
"""Extension that uses '.c' files in place of '.pyx' files"""
+ def __init__(self, name, sources, py_limited_api=False, **kw):
+ self.py_limited_api = py_limited_api
+ _Extension.__init__(self, name, sources, **kw)
+
def _convert_pyx_sources_to_lang(self):
"""
Replace sources with .pyx extensions to sources with the target