summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2007-10-15 18:46:46 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2007-10-15 18:46:46 +0000
commiteb54a93d9856fe5fa71fb9b68da3e96e7c002b83 (patch)
tree9af36d5ed20c6c412dbafefa4d87d97b2d08358d /dev-python/numarray/files
parentBump xen-tools to version 3.1.1 (diff)
downloadgentoo-2-eb54a93d9856fe5fa71fb9b68da3e96e7c002b83.tar.gz
gentoo-2-eb54a93d9856fe5fa71fb9b68da3e96e7c002b83.tar.bz2
gentoo-2-eb54a93d9856fe5fa71fb9b68da3e96e7c002b83.zip
use new virtual/cblas. added an (incomplete) patch for python-2.5. some cleanup.
(Portage version: 2.1.3.12)
Diffstat (limited to 'dev-python/numarray/files')
-rw-r--r--dev-python/numarray/files/numarray-1.5.2-python25.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/numarray/files/numarray-1.5.2-python25.patch b/dev-python/numarray/files/numarray-1.5.2-python25.patch
new file mode 100644
index 000000000000..6d7621984a4a
--- /dev/null
+++ b/dev-python/numarray/files/numarray-1.5.2-python25.patch
@@ -0,0 +1,40 @@
+--- Src/_ndarraymodule.c.orig 2007-09-05 09:54:58.759967037 +0100
++++ Src/_ndarraymodule.c 2007-09-05 09:54:36.098675644 +0100
+@@ -596,12 +596,12 @@
+
+ /* Copied from Python-2.3.3 Objects/sliceobject.c */
+ int
+-_GetIndicesEx(PySliceObject *r, int length,
+- int *start, int *stop, int *step, int *slicelength)
++_GetIndicesEx(PySliceObject *r, Py_ssize_t length,
++ Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step, Py_ssize_t *slicelength)
+ {
+ /* this is harder to get right than you might think */
+
+- int defstart, defstop;
++ Py_ssize_t defstart, defstop;
+
+ if (r->step == Py_None) {
+ *step = 1;
+@@ -706,7 +706,7 @@
+ self->nd = _snip( self->nd, self->dimensions, dim);
+ self->nstrides = _snip( self->nstrides, self->strides, dim);
+ } else if (PySlice_Check(slice)) {
+- int start, stop, step, strided;
++ Py_ssize_t start, stop, step, strided;
+ if (_GetIndicesEx( (PySliceObject *) slice,
+ self->dimensions[dim],
+ &start, &stop, &step, &strided) < 0)
+@@ -718,9 +718,9 @@
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+- self->byteoffset += self->strides[dim] * start;
+- self->dimensions[dim] = strided;
+- self->strides[dim] *= step;
++ self->byteoffset += (maybelong) (self->strides[dim] * start);
++ self->dimensions[dim] = (maybelong) strided;
++ self->strides[dim] *= (maybelong) step;
+ ++ dim;
+ } else {
+ Py_DECREF(rest);