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() |