diff options
Diffstat (limited to 'setuptools')
| -rw-r--r-- | setuptools/extension.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/setuptools/extension.py b/setuptools/extension.py index da94c3fa..f8058b72 100644 --- a/setuptools/extension.py +++ b/setuptools/extension.py @@ -36,9 +36,11 @@ 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 __init__(self, name, sources, *args, **kw): + # The *args is needed for compatibility as calls may use positional + # arguments. py_limited_api may be set only via keyword. + self.py_limited_api = kw.pop("py_limited_api", False) + _Extension.__init__(self, name, sources, *args, **kw) def _convert_pyx_sources_to_lang(self): """ |
