Commit 9ac3dbb9 authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #753 from tlandschoff-scale/master

Make Extension accept positional arguments again (fixes #752).
parents ac325f34 d6875318
......@@ -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):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment