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
cc3e4aab
Commit
cc3e4aab
authored
Apr 25, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
treat .py files in distutils Extension() sources like .pyx files
parent
bf579cac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Cython/Distutils/build_ext.py
Cython/Distutils/build_ext.py
+6
-3
No files found.
Cython/Distutils/build_ext.py
View file @
cc3e4aab
...
...
@@ -85,9 +85,9 @@ class build_ext(_build_ext.build_ext):
"""
Walk the list of source files in 'sources', looking for Cython
source
(.pyx) files. Run Cython on all that are found, and return
a modified 'sources' list with Cython source files replaced by th
e
generated C (or C++) files.
source
files (.pyx and .py). Run Cython on all that are
found, and return a modified 'sources' list with Cython sourc
e
files replaced by the
generated C (or C++) files.
"""
if
PyrexError
==
None
:
...
...
@@ -158,6 +158,9 @@ class build_ext(_build_ext.build_ext):
newest_dependency
=
None
for
source
in
sources
:
(
base
,
ext
)
=
os
.
path
.
splitext
(
os
.
path
.
basename
(
source
))
if
ext
==
".py"
:
# FIXME: we might want to special case this some more
ext
=
'.pyx'
if
ext
==
".pyx"
:
# Cython source file
output_dir
=
target_dir
or
os
.
path
.
dirname
(
source
)
new_sources
.
append
(
os
.
path
.
join
(
output_dir
,
base
+
target_ext
))
...
...
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