Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
6297cd87
Commit
6297cd87
authored
Nov 15, 2016
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warn about multiple Cython sources in a single extension.
parent
ff0fc55b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Cython/Build/Dependencies.py
Cython/Build/Dependencies.py
+8
-3
No files found.
Cython/Build/Dependencies.py
View file @
6297cd87
...
@@ -677,9 +677,14 @@ def create_extension_list(patterns, exclude=None, ctx=None, aliases=None, quiet=
...
@@ -677,9 +677,14 @@ def create_extension_list(patterns, exclude=None, ctx=None, aliases=None, quiet=
exn_type
=
Extension
exn_type
=
Extension
ext_language
=
language
ext_language
=
language
elif
isinstance
(
pattern
,
(
Extension_distutils
,
Extension_setuptools
)):
elif
isinstance
(
pattern
,
(
Extension_distutils
,
Extension_setuptools
)):
for
filepattern
in
pattern
.
sources
:
cython_sources
=
[
s
for
s
in
pattern
.
sources
if
os
.
path
.
splitext
(
filepattern
)[
1
]
in
(
'.py'
,
'.pyx'
):
if
os
.
path
.
splitext
(
s
)[
1
]
in
(
'.py'
,
'.pyx'
)]
break
if
cython_sources
:
filepattern
=
cython_sources
[
0
]
if
len
(
cython_sources
)
>
1
:
print
(
"Warning: Multiple cython sources found for extension '%s': %s
\
n
"
"See http://cython.readthedocs.io/en/latest/src/userguide/sharing_declarations.html "
"for sharing declarations among Cython files."
%
(
pattern
.
name
,
cython_sources
))
else
:
else
:
# ignore non-cython modules
# ignore non-cython modules
module_list
.
append
(
pattern
)
module_list
.
append
(
pattern
)
...
...
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