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
0ee15b18
Commit
0ee15b18
authored
Apr 17, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor code cleanups
parent
88c8b9a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Cython/Build/Dependencies.py
Cython/Build/Dependencies.py
+3
-2
No files found.
Cython/Build/Dependencies.py
View file @
0ee15b18
...
@@ -309,11 +309,12 @@ def resolve_depends(depends, include_dirs):
...
@@ -309,11 +309,12 @@ def resolve_depends(depends, include_dirs):
@
cached_function
@
cached_function
def
resolve_depend
(
depend
,
include_dirs
):
def
resolve_depend
(
depend
,
include_dirs
):
if
depend
[
0
]
==
'<'
and
depend
[
-
1
]
==
'>'
:
if
depend
[
0
]
==
'<'
and
depend
[
-
1
]
==
'>'
:
return
return
None
for
dir
in
include_dirs
:
for
dir
in
include_dirs
:
path
=
join_path
(
dir
,
depend
)
path
=
join_path
(
dir
,
depend
)
if
path_exists
(
path
):
if
path_exists
(
path
):
return
os
.
path
.
normpath
(
path
)
return
os
.
path
.
normpath
(
path
)
return
None
@
cached_function
@
cached_function
def
parse_dependencies
(
source_filename
):
def
parse_dependencies
(
source_filename
):
...
@@ -481,7 +482,7 @@ class DependencyTree(object):
...
@@ -481,7 +482,7 @@ class DependencyTree(object):
externs
=
self
.
cimports_and_externs
(
filename
)[
1
]
externs
=
self
.
cimports_and_externs
(
filename
)[
1
]
if
externs
:
if
externs
:
if
'depends'
in
info
.
values
:
if
'depends'
in
info
.
values
:
info
.
values
[
'depends'
]
=
list
(
set
(
info
.
values
[
'depends'
]).
union
(
set
(
externs
)
))
info
.
values
[
'depends'
]
=
list
(
set
(
info
.
values
[
'depends'
]).
union
(
externs
))
else
:
else
:
info
.
values
[
'depends'
]
=
list
(
externs
)
info
.
values
[
'depends'
]
=
list
(
externs
)
return
info
return
info
...
...
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