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
db5159a3
Commit
db5159a3
authored
Apr 14, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
divert cythonrun output to stderr
parent
d9d5ebb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
bin/cythonrun
bin/cythonrun
+15
-10
No files found.
bin/cythonrun
View file @
db5159a3
...
...
@@ -29,19 +29,25 @@ LIBS = sysconfig.get_config_var('LIBS')
SYSLIBS
=
sysconfig
.
get_config_var
(
'SYSLIBS'
)
if
DEBUG
:
print
(
'INCDIR: %s'
%
INCDIR
)
print
(
'LIBDIR1: %s'
%
LIBDIR1
)
print
(
'LIBDIR2: %s'
%
LIBDIR2
)
print
(
'PYLIB: %s'
%
PYLIB
)
def
_debug
(
msg
,
*
args
):
if
args
:
msg
=
msg
%
args
sys
.
stderr
.
write
(
msg
+
'
\
n
'
)
else
:
def
_debug
(
*
args
):
pass
_debug
(
'INCDIR: %s'
,
INCDIR
)
_debug
(
'LIBDIR1: %s'
,
LIBDIR1
)
_debug
(
'LIBDIR2: %s'
,
LIBDIR2
)
_debug
(
'PYLIB: %s'
,
PYLIB
)
def
runcmd
(
cmd
,
shell
=
True
):
if
shell
:
cmd
=
' '
.
join
(
cmd
)
if
DEBUG
:
print
(
cmd
)
_debug
(
cmd
)
else
:
if
DEBUG
:
print
(
' '
.
join
(
cmd
))
_debug
(
' '
.
join
(
cmd
))
returncode
=
subprocess
.
call
(
cmd
,
shell
=
shell
)
if
returncode
:
...
...
@@ -57,8 +63,7 @@ def ccompile(basename):
def
cycompile
(
input_file
,
options
=
()):
from
Cython.Compiler
import
Version
,
CmdLine
,
Main
options
,
sources
=
CmdLine
.
parse_command_line
(
list
(
options
or
())
+
[
'--embed'
,
input_file
])
if
DEBUG
:
print
(
'Using Cython %s to compile %s'
%
(
Version
.
version
,
input_file
))
_debug
(
'Using Cython %s to compile %s'
,
Version
.
version
,
input_file
)
result
=
Main
.
compile
(
sources
,
options
)
if
result
.
num_errors
>
0
:
sys
.
exit
(
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