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
Gwenaël Samain
cython
Commits
0b7ccc4b
Commit
0b7ccc4b
authored
Nov 05, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle one more error in cythonize() when ignore-failures mode is requested
parent
dcb7d5e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Cython/Build/Dependencies.py
Cython/Build/Dependencies.py
+8
-2
No files found.
Cython/Build/Dependencies.py
View file @
0b7ccc4b
...
...
@@ -501,7 +501,7 @@ def create_dependency_tree(ctx=None, quiet=False):
return
_dep_tree
# This may be useful for advanced users?
def
create_extension_list
(
patterns
,
exclude
=
[],
ctx
=
None
,
aliases
=
None
,
quiet
=
False
):
def
create_extension_list
(
patterns
,
exclude
=
[],
ctx
=
None
,
aliases
=
None
,
quiet
=
False
,
exclude_failures
=
False
):
explicit_modules
=
set
([
m
.
name
for
m
in
patterns
if
isinstance
(
m
,
Extension
)])
seen
=
set
()
deps
=
create_dependency_tree
(
ctx
,
quiet
=
quiet
)
...
...
@@ -543,7 +543,12 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa
else
:
module_name
=
name
if
module_name
not
in
seen
:
kwds
=
deps
.
distutils_info
(
file
,
aliases
,
base
).
values
try
:
kwds
=
deps
.
distutils_info
(
file
,
aliases
,
base
).
values
except
Exception
:
if
exclude_failures
:
continue
raise
if
base
is
not
None
:
for
key
,
value
in
base
.
values
.
items
():
if
key
not
in
kwds
:
...
...
@@ -600,6 +605,7 @@ def cythonize(module_list, exclude=[], nthreads=0, aliases=None, quiet=False, fo
exclude
=
exclude
,
ctx
=
ctx
,
quiet
=
quiet
,
exclude_failures
=
exclude_failures
,
aliases
=
aliases
)
deps
=
create_dependency_tree
(
ctx
,
quiet
=
quiet
)
modules_by_cfile
=
{}
...
...
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