update to py-Numeric 23.1
this removes the python2.1 FLAVOR as it is pretty useless, set MODPY_VERSION in case you need to compile this with python 2.1 no in-tree port requires this MAINTAINER timeout, from Andrew Dalgleish <openbsd@ajd.net.au>
This commit is contained in:
parent
748d5a1909
commit
c193008266
@ -1,8 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.9 2003/07/31 19:11:59 sturm Exp $
|
||||
# $OpenBSD: Makefile,v 1.10 2003/10/21 19:51:50 sturm Exp $
|
||||
|
||||
COMMENT= "fast array facility to the Python language"
|
||||
|
||||
VERSION= 22.0
|
||||
VERSION= 23.1
|
||||
DISTNAME= Numeric-${VERSION}
|
||||
PKGNAME= py-${DISTNAME}
|
||||
CATEGORIES= math
|
||||
@ -18,15 +18,9 @@ PERMIT_DISTFILES_FTP= Yes
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=numpy/}
|
||||
HOMEPAGE= http://www.pfdubois.com/numpy/
|
||||
|
||||
FLAVORS= python2.1
|
||||
FLAVOR?=
|
||||
|
||||
MODULES= python
|
||||
|
||||
.if ${FLAVOR:L:Mpython2.1}
|
||||
MODPY_VERSION= 2.1
|
||||
.endif
|
||||
|
||||
NO_REGRESS= Yes
|
||||
do-regress:
|
||||
cd ${WRKSRC}/Test && ${MODPY_BIN} -i test.py
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (Numeric-22.0.tar.gz) = 222b71d150efa9be52622a288547d9d7
|
||||
RMD160 (Numeric-22.0.tar.gz) = cf07c3be59a3d8cff18c1bddc989af277e16b4e6
|
||||
SHA1 (Numeric-22.0.tar.gz) = e185b7d59a11c8a3d29a60599e1111f43e4f4a16
|
||||
MD5 (Numeric-23.1.tar.gz) = 5cd24ed20627f5cbc822a2bed8ff27e9
|
||||
RMD160 (Numeric-23.1.tar.gz) = fd5e7373d42f249524b6c5451bb28fab18eba786
|
||||
SHA1 (Numeric-23.1.tar.gz) = 60d39ba6eb902a429d7f7b5b80b9228ebfe64a2c
|
||||
|
12
math/py-Numeric/patches/patch-Src_multiarraymodule_c
Normal file
12
math/py-Numeric/patches/patch-Src_multiarraymodule_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-Src_multiarraymodule_c,v 1.1 2003/10/21 19:51:50 sturm Exp $
|
||||
--- Src/multiarraymodule.c.orig 2003-10-20 20:45:07.000000000 +0200
|
||||
+++ Src/multiarraymodule.c 2003-10-20 20:45:13.000000000 +0200
|
||||
@@ -1524,7 +1524,7 @@ static PyObject *array_set_string_functi
|
||||
}
|
||||
|
||||
static struct PyMethodDef array_module_methods[] = {
|
||||
- {"set_string_function", array_set_string_function, METH_VARARGS|METH_KEYWORDS, doc_set_string_function},
|
||||
+ {"set_string_function", (PyCFunction)array_set_string_function, METH_VARARGS|METH_KEYWORDS, doc_set_string_function},
|
||||
|
||||
{"array", (PyCFunction)array_array, METH_VARARGS|METH_KEYWORDS, doc_array},
|
||||
{"arange", (PyCFunction)array_arange, METH_VARARGS|METH_KEYWORDS, doc_arange},
|
22
math/py-Numeric/patches/patch-Test_test_py
Normal file
22
math/py-Numeric/patches/patch-Test_test_py
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-Test_test_py,v 1.1 2003/10/21 19:51:50 sturm Exp $
|
||||
--- Test/test.py.orig 2003-08-07 03:24:11.000000000 +1000
|
||||
+++ Test/test.py 2003-08-12 02:53:26.000000000 +1000
|
||||
@@ -1,3 +1,7 @@
|
||||
+import sys
|
||||
+import distutils.util
|
||||
+sys.path.append("../lib.%s-%s" % (distutils.util.get_platform(), sys.version[0:3]))
|
||||
+
|
||||
import unittest, types, math
|
||||
import Numeric
|
||||
|
||||
@@ -163,7 +167,9 @@ class BasicNumericTestCase (unittest.Tes
|
||||
assert eq(x - y, [0, 0, 3, 3, 6, 3])
|
||||
assert eq(x * y, [1, 4, 0, 8, 10, 18])
|
||||
assert eq(y / x, [1, 1, 0, 0, 0, 0])
|
||||
- assert eq(y // x, [1, 1, 0, 0, 0, 0])
|
||||
+ # We can't test floor division with python 2.1
|
||||
+ # (this unit test didn't check it properly anyway)
|
||||
+ #assert eq(y // x, [1, 1, 0, 0, 0, 0])
|
||||
assert eq(x**2, [1, 4, 9, 16, 25, 36])
|
||||
|
||||
def testComparisons (self):
|
@ -1,3 +1,3 @@
|
||||
Numarray is a reimplementation of Numeric which adds the ability
|
||||
to efficiently manipulate large numeric arrays in ways similar to
|
||||
Matlab and IDL. This module is release under the Python License.
|
||||
Matlab and IDL. This module is released under the Python License.
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2003/07/31 19:11:59 sturm Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.4 2003/10/21 19:51:50 sturm Exp $
|
||||
include/python${MODPY_VERSION}/Numeric/arrayobject.h
|
||||
include/python${MODPY_VERSION}/Numeric/f2c.h
|
||||
include/python${MODPY_VERSION}/Numeric/ranlib.h
|
||||
@ -27,12 +27,6 @@ lib/python${MODPY_VERSION}/site-packages/Numeric/Numeric.py
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/Numeric.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/Precision.py
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/Precision.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/PropertiedClasses/Properties.py
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/PropertiedClasses/Properties.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/PropertiedClasses/Properties_version.py
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/PropertiedClasses/Properties_version.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/PropertiedClasses/__init__.py
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/PropertiedClasses/__init__.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/RNG/RNG.so
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/RNG/Statistics.py
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/RNG/Statistics.pyc
|
||||
@ -44,22 +38,13 @@ lib/python${MODPY_VERSION}/site-packages/Numeric/UserArray.py
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/UserArray.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/_numpy.so
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/arrayfns.so
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/kinds/__init__.py
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/kinds/__init__.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/kinds/_kinds.so
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/kinds/kinds.py
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/kinds/kinds.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/kinds/kinds_version.py
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/kinds/kinds_version.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/lapack_lite.so
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/multiarray.so
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/numeric_version.py
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/numeric_version.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/ranlib.so
|
||||
lib/python${MODPY_VERSION}/site-packages/Numeric/umath.so
|
||||
@dirrm lib/python${MODPY_VERSION}/site-packages/Numeric/kinds
|
||||
@dirrm lib/python${MODPY_VERSION}/site-packages/Numeric/RNG
|
||||
@dirrm lib/python${MODPY_VERSION}/site-packages/Numeric/PropertiedClasses
|
||||
@dirrm lib/python${MODPY_VERSION}/site-packages/Numeric/MA
|
||||
@dirrm lib/python${MODPY_VERSION}/site-packages/Numeric/FFT
|
||||
@dirrm lib/python${MODPY_VERSION}/site-packages/Numeric
|
||||
|
Loading…
Reference in New Issue
Block a user