[Numpy-svn] r8080 - trunk/numpy/distutils

numpy-svn@scip... numpy-svn@scip...
Fri Jan 29 16:18:04 CST 2010


Author: rkern
Date: 2010-01-29 16:18:04 -0600 (Fri, 29 Jan 2010)
New Revision: 8080

Modified:
   trunk/numpy/distutils/misc_util.py
Log:
BUG: guard against having an uninitialized list of scripts.

Modified: trunk/numpy/distutils/misc_util.py
===================================================================
--- trunk/numpy/distutils/misc_util.py	2010-01-24 23:11:57 UTC (rev 8079)
+++ trunk/numpy/distutils/misc_util.py	2010-01-29 22:18:04 UTC (rev 8080)
@@ -1677,6 +1677,8 @@
         scripts = self.paths(files)
         dist = self.get_distribution()
         if dist is not None:
+            if dist.scripts is None:
+                dist.scripts = []
             dist.scripts.extend(scripts)
         else:
             self.scripts.extend(scripts)



More information about the Numpy-svn mailing list