summaryrefslogtreecommitdiff
blob: 3eef739f93a86c6077e56e00bd5b0509c3d5ec41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()