[Python-modules-commits] r5107 - in packages/numpy/trunk/debian (3 files)

akumar at users.alioth.debian.org akumar at users.alioth.debian.org
Wed Apr 23 12:58:47 UTC 2008


    Date: Wednesday, April 23, 2008 @ 12:58:46
  Author: akumar
Revision: 5107

debian/patches/03_histogram_fix.diff:
+ Patch from Manuel Metz to fix numpy.histogram. (Closes: #470293)

Added:
  packages/numpy/trunk/debian/patches/03_histogram_fix.diff
Modified:
  packages/numpy/trunk/debian/changelog
  packages/numpy/trunk/debian/patches/series

Modified: packages/numpy/trunk/debian/changelog
===================================================================
--- packages/numpy/trunk/debian/changelog	2008-04-23 12:26:30 UTC (rev 5106)
+++ packages/numpy/trunk/debian/changelog	2008-04-23 12:58:46 UTC (rev 5107)
@@ -2,12 +2,14 @@
 
   * debian/rules:
     + Add the --single-version-externally-managed flag.
+  * debian/patches/03_histogram_fix.diff:
+    + Patch from Manuel Metz to fix numpy.histogram. (Closes: #470293)
   * debian/python-numpy.install:
     + Install the egg-info file. (Closes: #477243)
   * debian/control:
     + Update Kumar Appaiah's e-mail address to the debian.org
       address.
-  
+
  -- Kumar Appaiah <akumar at debian.org>  Wed, 23 Apr 2008 17:03:30 +0530
 
 python-numpy (1:1.0.4-7) unstable; urgency=low

Added: packages/numpy/trunk/debian/patches/03_histogram_fix.diff
===================================================================
--- packages/numpy/trunk/debian/patches/03_histogram_fix.diff	                        (rev 0)
+++ packages/numpy/trunk/debian/patches/03_histogram_fix.diff	2008-04-23 12:58:46 UTC (rev 5107)
@@ -0,0 +1,13 @@
+Index: b/numpy/lib/function_base.py
+===================================================================
+--- a/numpy/lib/function_base.py
++++ b/numpy/lib/function_base.py
+@@ -151,7 +151,7 @@
+             mx += 0.5
+         bins = linspace(mn, mx, bins, endpoint=False)
+     else:
+-        if(any(bins[1:]-bins[:-1] < 0)):
++        if(bins[1:]-bins[:-1] < 0).any():
+             raise AttributeError, 'bins must increase monotonically.'
+ 
+     # best block size probably depends on processor cache size

Modified: packages/numpy/trunk/debian/patches/series
===================================================================
--- packages/numpy/trunk/debian/patches/series	2008-04-23 12:26:30 UTC (rev 5106)
+++ packages/numpy/trunk/debian/patches/series	2008-04-23 12:58:46 UTC (rev 5107)
@@ -1,2 +1,3 @@
 01_fix_man_hyphens.patch
 02_dontuse_lapack.diff
+03_histogram_fix.diff




More information about the Python-modules-commits mailing list