diff options
| author | Daniel Holth <dholth@fastmail.fm> | 2016-08-03 21:55:39 -0400 |
|---|---|---|
| committer | Daniel Holth <dholth@fastmail.fm> | 2016-08-03 21:55:39 -0400 |
| commit | a2605b297c147a1ad54078181d32fe369fa4f37d (patch) | |
| tree | 59786ea683feecb6ec208792d6a2086b12995842 /setuptools/extension.py | |
| parent | 6a4e5446c941291ec5e7c56cee1d5a872300c955 (diff) | |
| download | python-setuptools-git-a2605b297c147a1ad54078181d32fe369fa4f37d.tar.gz | |
use abi3 extension if Extension().is_abi3
Diffstat (limited to 'setuptools/extension.py')
| -rw-r--r-- | setuptools/extension.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/setuptools/extension.py b/setuptools/extension.py index 5ea72c06..a6cc0915 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, is_abi3=False, **kw): + self.is_abi3 = is_abi3 + _Extension.__init__(self, name, sources, **kw) + def _convert_pyx_sources_to_lang(self): """ Replace sources with .pyx extensions to sources with the target |
