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
Boxiang Sun
cython
Commits
f3df1464
Commit
f3df1464
authored
Aug 06, 2007
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support 'language' option in distutils Extension
parent
1d4ec60a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Cython/Distutils/build_ext.py
Cython/Distutils/build_ext.py
+4
-2
No files found.
Cython/Distutils/build_ext.py
View file @
f3df1464
...
...
@@ -37,8 +37,12 @@ class build_ext (distutils.command.build_ext.build_ext):
if
not
self
.
extensions
:
return
#suffix = self.swig_cpp and '.cpp' or '.c'
suffix
=
'.c'
if
extension
is
not
None
:
module_name
=
extension
.
name
if
extension
.
language
==
"c++"
:
suffix
=
".cpp"
else
:
module_name
=
None
...
...
@@ -46,8 +50,6 @@ class build_ext (distutils.command.build_ext.build_ext):
pyx_sources
=
[
source
for
source
in
sources
if
source
.
endswith
(
'.pyx'
)]
other_sources
=
[
source
for
source
in
sources
if
not
source
.
endswith
(
'.pyx'
)]
#suffix = self.swig_cpp and '.cpp' or '.c'
suffix
=
'.c'
for
pyx
in
pyx_sources
:
# should I raise an exception if it doesn't exist?
if
os
.
path
.
exists
(
pyx
):
...
...
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