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
5154198f
Commit
5154198f
authored
May 10, 2013
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add relative extern files to dependencies.
parent
e0b16f53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Cython/Build/Dependencies.py
Cython/Build/Dependencies.py
+5
-2
No files found.
Cython/Build/Dependencies.py
View file @
5154198f
...
...
@@ -297,10 +297,13 @@ def normalize_existing0(base_dir, rel_paths):
normalized
.
append
(
rel
)
return
normalized
def
resolve_depends
(
depends
,
include_dirs
):
def
resolve_depends
(
depends
,
include_dirs
,
base
):
include_dirs
=
tuple
(
include_dirs
)
resolved
=
[]
for
depend
in
depends
:
if
path_exists
(
join_path
(
base
,
depend
)):
resolved
.
append
(
join_path
(
base
,
depend
))
continue
path
=
resolve_depend
(
depend
,
include_dirs
)
if
path
is
not
None
:
resolved
.
append
(
path
)
...
...
@@ -598,7 +601,7 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa
sources
.
append
(
source
)
del
kwds
[
'sources'
]
if
'depends'
in
kwds
:
depends
=
resolve_depends
(
kwds
[
'depends'
],
kwds
.
get
(
'include_dirs'
)
or
[])
depends
=
resolve_depends
(
kwds
[
'depends'
],
kwds
.
get
(
'include_dirs'
)
or
[]
,
base
=
os
.
path
.
dirname
(
file
)
)
if
template
is
not
None
:
# Always include everything from the template.
depends
=
list
(
set
(
template
.
depends
).
union
(
set
(
depends
)))
...
...
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