File: restore_sys_argv.patch

package info (click to toggle)
python-scipy 0.7.2%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 28,500 kB
  • ctags: 36,081
  • sloc: cpp: 216,880; fortran: 76,016; python: 71,576; ansic: 62,118; makefile: 243; sh: 17
file content (17 lines) | stat: -rw-r--r-- 653 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: restore sys.argv in case of exception
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500814

Index: scipy-0.7.1/scipy/weave/build_tools.py
===================================================================
--- scipy-0.7.1.orig/scipy/weave/build_tools.py	2010-04-05 16:40:02.377973881 +0200
+++ scipy-0.7.1/scipy/weave/build_tools.py	2010-04-05 16:41:02.685970432 +0200
@@ -283,6 +283,9 @@
         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()