Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
9ac3dbb9
Commit
9ac3dbb9
authored
Aug 20, 2016
by
Jason R. Coombs
Committed by
GitHub
Aug 20, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #753 from tlandschoff-scale/master
Make Extension accept positional arguments again (fixes #752).
parents
ac325f34
d6875318
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
setuptools/extension.py
setuptools/extension.py
+5
-3
No files found.
setuptools/extension.py
View file @
9ac3dbb9
...
...
@@ -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
):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment