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
57aed717
Commit
57aed717
authored
Mar 29, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
...
parents
93b894bd
c2990ce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Cython/Distutils/build_ext.py
Cython/Distutils/build_ext.py
+9
-1
No files found.
Cython/Distutils/build_ext.py
View file @
57aed717
...
...
@@ -155,6 +155,7 @@ class build_ext(_build_ext.build_ext):
else
:
target_dir
=
None
newest_dependency
=
None
for
source
in
sources
:
(
base
,
ext
)
=
os
.
path
.
splitext
(
os
.
path
.
basename
(
source
))
if
ext
==
".pyx"
:
# Cython source file
...
...
@@ -162,6 +163,10 @@ class build_ext(_build_ext.build_ext):
new_sources
.
append
(
os
.
path
.
join
(
output_dir
,
base
+
target_ext
))
pyrex_sources
.
append
(
source
)
pyrex_targets
[
source
]
=
new_sources
[
-
1
]
elif
ext
==
'.pxi'
or
ext
==
'.pxd'
:
if
newest_dependency
is
None
\
or
newer
(
source
,
newest_dependency
):
newest_dependency
=
source
else
:
new_sources
.
append
(
source
)
...
...
@@ -172,7 +177,10 @@ class build_ext(_build_ext.build_ext):
for
source
in
pyrex_sources
:
target
=
pyrex_targets
[
source
]
if
self
.
force
or
newer
(
source
,
target
):
rebuild
=
self
.
force
or
newer
(
source
,
target
)
if
not
rebuild
and
newest_dependency
is
not
None
:
rebuild
=
newer
(
newest_dependency
,
target
)
if
rebuild
:
log
.
info
(
"cythoning %s to %s"
,
source
,
target
)
self
.
mkpath
(
os
.
path
.
dirname
(
target
))
options
=
CompilationOptions
(
pyrex_default_options
,
...
...
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