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
0a00f725
Commit
0a00f725
authored
Jan 24, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent pyxbuild.py from raising SystemExit (!) on build failure
parent
f84b2a99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pyximport/pyxbuild.py
pyximport/pyxbuild.py
+3
-3
No files found.
pyximport/pyxbuild.py
View file @
0a00f725
...
...
@@ -23,7 +23,7 @@ def pyx_to_dll(filename, ext = None, force_rebuild = 0):
if
not
ext
:
modname
,
extension
=
os
.
path
.
splitext
(
name
)
assert
extension
==
".pyx"
,
extension
assert
extension
in
(
".pyx"
,
".py"
)
,
extension
ext
=
Extension
(
name
=
modname
,
sources
=
[
filename
])
if
DEBUG
:
...
...
@@ -64,14 +64,14 @@ def pyx_to_dll(filename, ext = None, force_rebuild = 0):
sys
.
stderr
.
write
(
error
+
"
\
n
"
)
raise
else
:
raise
SystemExit
,
error
raise
RuntimeError
,
error
except
(
DistutilsError
,
CCompilerError
),
msg
:
if
DEBUG
:
raise
else
:
raise
SystemExit
,
"error: "
+
str
(
msg
)
raise
RuntimeError
,
"error: "
+
str
(
msg
)
if
__name__
==
"__main__"
:
pyx_to_dll
(
"dummy.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