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
e63ba22c
Commit
e63ba22c
authored
Oct 22, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix new build for an installed Cython and in Py3 test setting
parent
14f8fc4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
Cython/Compiler/Dependencies.py
Cython/Compiler/Dependencies.py
+17
-6
No files found.
Cython/Compiler/Dependencies.py
View file @
e63ba22c
...
@@ -450,13 +450,24 @@ def cythonize(module_list, ctx=None, nthreads=0, aliases=None):
...
@@ -450,13 +450,24 @@ def cythonize(module_list, ctx=None, nthreads=0, aliases=None):
cythonize_one
(
pyx_file
,
c_file
)
cythonize_one
(
pyx_file
,
c_file
)
return
module_list
return
module_list
cython_py
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'../../cython.py'
))
def
cythonize_one
(
pyx_file
,
c_file
,
options
=
None
):
from
Cython.Compiler.Main
import
compile
,
CompilationOptions
,
default_options
from
Cython.Compiler.Errors
import
CompileError
,
PyrexError
def
cythonize_one
(
pyx_file
,
c_file
):
if
options
is
None
:
cmd
=
"%s %s %s -o %s"
%
(
sys
.
executable
,
cython_py
,
pyx_file
,
c_file
)
options
=
CompilationOptions
(
default_options
)
print
(
cmd
)
options
.
output_file
=
c_file
if
os
.
system
(
cmd
)
!=
0
:
raise
CompilerError
(
pyx_file
)
any_failures
=
0
try
:
result
=
compile
([
pyx_file
],
options
)
if
result
.
num_errors
>
0
:
any_failures
=
1
except
(
EnvironmentError
,
PyrexError
),
e
:
sys
.
stderr
.
write
(
str
(
e
)
+
'
\
n
'
)
any_failures
=
1
if
any_failures
:
raise
CompileError
(
None
,
pyx_file
)
def
cythonize_one_helper
(
m
):
def
cythonize_one_helper
(
m
):
return
cythonize_one
(
*
m
[
1
:])
return
cythonize_one
(
*
m
[
1
:])
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