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
0a930f3f
Commit
0a930f3f
authored
Jul 28, 2007
by
William Stein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few more Pyrex --> Cython changes.
parent
004bb9e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Distutils/build_ext.py
Cython/Distutils/build_ext.py
+3
-3
No files found.
Cython/Distutils/build_ext.py
View file @
0a930f3f
...
@@ -19,7 +19,7 @@ def replace_suffix(path, new_suffix):
...
@@ -19,7 +19,7 @@ def replace_suffix(path, new_suffix):
class
build_ext
(
distutils
.
command
.
build_ext
.
build_ext
):
class
build_ext
(
distutils
.
command
.
build_ext
.
build_ext
):
description
=
"compile
Pyrex
scripts, then build C/C++ extensions (compile/link to build directory)"
description
=
"compile
Cython
scripts, then build C/C++ extensions (compile/link to build directory)"
def
finalize_options
(
self
):
def
finalize_options
(
self
):
distutils
.
command
.
build_ext
.
build_ext
.
finalize_options
(
self
)
distutils
.
command
.
build_ext
.
build_ext
.
finalize_options
(
self
)
...
@@ -50,11 +50,11 @@ class build_ext (distutils.command.build_ext.build_ext):
...
@@ -50,11 +50,11 @@ class build_ext (distutils.command.build_ext.build_ext):
source
=
pyx
source
=
pyx
target
=
replace_suffix
(
source
,
suffix
)
target
=
replace_suffix
(
source
,
suffix
)
if
newer
(
source
,
target
)
or
self
.
force
:
if
newer
(
source
,
target
)
or
self
.
force
:
self
.
pyrex
_compile
(
source
)
self
.
cython
_compile
(
source
)
return
[
replace_suffix
(
src
,
suffix
)
for
src
in
pyx_sources
]
+
other_sources
return
[
replace_suffix
(
src
,
suffix
)
for
src
in
pyx_sources
]
+
other_sources
def
pyrex
_compile
(
self
,
source
):
def
cython
_compile
(
self
,
source
):
options
=
CompilationOptions
(
default_options
,
options
=
CompilationOptions
(
default_options
,
include_path
=
self
.
include_dirs
)
include_path
=
self
.
include_dirs
)
result
=
compile
(
source
,
options
)
result
=
compile
(
source
,
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