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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
ad109acd
Commit
ad109acd
authored
Dec 05, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More robust include searching.
parent
c6d8607a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
Cython/Build/Dependencies.py
Cython/Build/Dependencies.py
+9
-3
No files found.
Cython/Build/Dependencies.py
View file @
ad109acd
...
...
@@ -265,9 +265,15 @@ class DependencyTree(object):
cimports
=
set
(
cimports
)
externs
=
set
(
externs
)
for
include
in
includes
:
a
,
b
=
self
.
cimports_and_externs
(
os
.
path
.
join
(
os
.
path
.
dirname
(
filename
),
include
))
cimports
.
update
(
a
)
externs
.
update
(
b
)
include_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
filename
),
include
)
if
not
os
.
path
.
exists
(
include_path
):
include_path
=
self
.
context
.
find_include_file
(
include
)
if
include_path
:
a
,
b
=
self
.
cimports_and_externs
(
include_path
)
cimports
.
update
(
a
)
externs
.
update
(
b
)
else
:
print
"Unable to locate '%s' referenced from '%s'"
%
(
filename
,
include
)
return
tuple
(
cimports
),
tuple
(
externs
)
cimports_and_externs
=
cached_method
(
cimports_and_externs
)
...
...
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