You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/scipy/files/scipy-0.12.0-restore-sys-ar...

16 lines
483 B

Description: restore sys.argv in case of exception
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500814
--- a/scipy/weave/build_tools.py
+++ b/scipy/weave/build_tools.py
@@ -283,6 +283,9 @@ def build_extension(module_path,compiler
configure_python_path(build_dir)
except SyntaxError: #TypeError:
success = 0
+ except Exception, e:
+ restore_sys_argv()
+ raise e
# restore argv after our trick...
restore_sys_argv()