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
8d6047a6
Commit
8d6047a6
authored
Aug 06, 2007
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
honour Extension.include_dirs
parent
e878491e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Cython/Distutils/build_ext.py
Cython/Distutils/build_ext.py
+5
-3
No files found.
Cython/Distutils/build_ext.py
View file @
8d6047a6
...
@@ -40,8 +40,10 @@ class build_ext (distutils.command.build_ext.build_ext):
...
@@ -40,8 +40,10 @@ class build_ext (distutils.command.build_ext.build_ext):
#suffix = self.swig_cpp and '.cpp' or '.c'
#suffix = self.swig_cpp and '.cpp' or '.c'
suffix
=
'.c'
suffix
=
'.c'
cplus
=
0
cplus
=
0
include_dirs
=
[]
if
extension
is
not
None
:
if
extension
is
not
None
:
module_name
=
extension
.
name
module_name
=
extension
.
name
include_dirs
=
extension
.
include_dirs
or
[]
if
extension
.
language
==
"c++"
:
if
extension
.
language
==
"c++"
:
cplus
=
1
cplus
=
1
suffix
=
".cpp"
suffix
=
".cpp"
...
@@ -58,14 +60,14 @@ class build_ext (distutils.command.build_ext.build_ext):
...
@@ -58,14 +60,14 @@ 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
.
cython_compile
(
source
,
module_name
,
cplus
)
self
.
cython_compile
(
source
,
module_name
,
include_dirs
,
cplus
)
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
cython_compile
(
self
,
source
,
module_name
,
cplus
):
def
cython_compile
(
self
,
source
,
module_name
,
include_dirs
,
cplus
):
options
=
CompilationOptions
(
options
=
CompilationOptions
(
default_options
,
default_options
,
include_path
=
self
.
include_dirs
,
include_path
=
include_dirs
+
self
.
include_dirs
,
cplus
=
cplus
)
cplus
=
cplus
)
result
=
compile
(
source
,
options
,
full_module_name
=
module_name
)
result
=
compile
(
source
,
options
,
full_module_name
=
module_name
)
if
result
.
num_errors
<>
0
:
if
result
.
num_errors
<>
0
:
...
...
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