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
Kirill Smelkov
cython
Commits
6478e87d
Commit
6478e87d
authored
Oct 17, 2007
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greg: Add --force support to distutils extension
parent
a39c2fdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
Cython/Distutils/build_ext.py
Cython/Distutils/build_ext.py
+2
-8
No files found.
Cython/Distutils/build_ext.py
View file @
6478e87d
...
...
@@ -12,7 +12,7 @@ from types import *
from
distutils.core
import
Command
from
distutils.errors
import
*
from
distutils.sysconfig
import
customize_compiler
,
get_python_version
from
distutils.dep_util
import
newer_group
from
distutils.dep_util
import
newer
,
newer
_group
from
distutils
import
log
from
distutils.dir_util
import
mkpath
try
:
...
...
@@ -171,13 +171,7 @@ class build_ext(_build_ext.build_ext):
for
source
in
pyrex_sources
:
target
=
pyrex_targets
[
source
]
source_time
=
os
.
stat
(
source
).
st_mtime
try
:
target_time
=
os
.
stat
(
target
).
st_mtime
newer
=
source_time
>
target_time
except
EnvironmentError
:
newer
=
1
if
newer
:
if
self
.
force
or
newer
(
source
,
target
):
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