Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

3
math/py-numexpr/DESCR Normal file
View File

@@ -0,0 +1,3 @@
Numexpr is a fast numerical expression evaluator for NumPy. With it,
expressions that operate on arrays (like "3*a+4*b") are accelerated
and use less memory than doing the same calculation in Python.

21
math/py-numexpr/Makefile Normal file
View File

@@ -0,0 +1,21 @@
# $NetBSD: Makefile,v 1.3 2012/09/11 23:04:31 asau Exp $
#
DISTNAME= numexpr-1.4.1
PKGNAME= ${PYPKGPREFIX}-numexpr-1.4.1
CATEGORIES= math
MASTER_SITES= http://numexpr.googlecode.com/files/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://numexpr.googlecode.com/
COMMENT= Numerical expression evaluator for NumPy
#LICENSE= # TODO: (see mk/license.mk)
PYDISTUTILSPKG= yes
do-test:
${PYTHONBIN} -c "import numexpr; numexpr.test()"
.include "../../lang/python/extension.mk"
.include "../../math/py-numpy/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

29
math/py-numexpr/PLIST Normal file
View File

@@ -0,0 +1,29 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2010/07/16 12:12:17 drochner Exp $
${PYSITELIB}/numexpr/__config__.py
${PYSITELIB}/numexpr/__config__.pyc
${PYSITELIB}/numexpr/__config__.pyo
${PYSITELIB}/numexpr/__init__.py
${PYSITELIB}/numexpr/__init__.pyc
${PYSITELIB}/numexpr/__init__.pyo
${PYSITELIB}/numexpr/cpuinfo.py
${PYSITELIB}/numexpr/cpuinfo.pyc
${PYSITELIB}/numexpr/cpuinfo.pyo
${PYSITELIB}/numexpr/expressions.py
${PYSITELIB}/numexpr/expressions.pyc
${PYSITELIB}/numexpr/expressions.pyo
${PYSITELIB}/numexpr/interpreter.so
${PYSITELIB}/numexpr/necompiler.py
${PYSITELIB}/numexpr/necompiler.pyc
${PYSITELIB}/numexpr/necompiler.pyo
${PYSITELIB}/numexpr/tests/__init__.py
${PYSITELIB}/numexpr/tests/__init__.pyc
${PYSITELIB}/numexpr/tests/__init__.pyo
${PYSITELIB}/numexpr/tests/test_numexpr.py
${PYSITELIB}/numexpr/tests/test_numexpr.pyc
${PYSITELIB}/numexpr/tests/test_numexpr.pyo
${PYSITELIB}/numexpr/utils.py
${PYSITELIB}/numexpr/utils.pyc
${PYSITELIB}/numexpr/utils.pyo
${PYSITELIB}/numexpr/version.py
${PYSITELIB}/numexpr/version.pyc
${PYSITELIB}/numexpr/version.pyo

View File

@@ -0,0 +1,15 @@
# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/07/16 12:12:17 drochner Exp $
BUILDLINK_TREE+= pynumexpr
.if !defined(PY_NUMEXPR_BUILDLINK3_MK)
PY_NUMEXPR_BUILDLINK3_MK:=
.include "../../lang/python/pyversion.mk"
BUILDLINK_API_DEPENDS.pynumexpr+= ${PYPKGPREFIX}-numexpr>=1.3.1
BUILDLINK_PKGSRCDIR.pynumexpr?= ../../math/py-numexpr
.endif # PY_NUMEXPR_BUILDLINK3_MK
BUILDLINK_TREE+= -pynumexpr

7
math/py-numexpr/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.2 2010/11/02 19:25:04 drochner Exp $
SHA1 (numexpr-1.4.1.tar.gz) = ad4e3117f1fb2a3a2ca7e785fba1c33abd0da3b7
RMD160 (numexpr-1.4.1.tar.gz) = fc390e0a0e361f3f01d3c41e179c31f7759a9b28
Size (numexpr-1.4.1.tar.gz) = 63109 bytes
SHA1 (patch-aa) = 6bcf00bc0150597e60f03dfe83c508e831fd2c5d
SHA1 (patch-ab) = 8d7c58654228b9961169bde5c74cc9bd22ed7fa4

View File

@@ -0,0 +1,20 @@
$NetBSD: patch-aa,v 1.1.1.1 2010/07/16 12:12:17 drochner Exp $
--- setup.py.orig 2009-06-02 17:03:49.000000000 +0000
+++ setup.py
@@ -5,10 +5,11 @@ import os.path as op
from distutils.command.clean import clean
from numpy.distutils.command.build_ext import build_ext as numpy_build_ext
-try:
- import setuptools
-except ImportError:
- setuptools = None
+#try:
+# import setuptools
+#except ImportError:
+# setuptools = None
+setuptools = None
extra_setup_opts = {}
if setuptools:
extra_setup_opts['zip_safe'] = False

View File

@@ -0,0 +1,44 @@
$NetBSD: patch-ab,v 1.1.1.1 2010/07/16 12:12:17 drochner Exp $
--- numexpr/cpuinfo.py.orig 2009-06-23 08:39:40.000000000 +0000
+++ numexpr/cpuinfo.py
@@ -390,6 +390,30 @@ class DarwinCPUInfo(CPUInfoBase):
def _is_ppc823(self): return self.__machine(823)
def _is_ppc860(self): return self.__machine(860)
+class NetBSDCPUInfo(CPUInfoBase):
+ info = None
+
+ def __init__(self):
+ if self.info is not None:
+ return
+ info = command_info(arch='arch', machine='machine')
+ info['sysctl_hw'] = key_value_from_command('sysctl hw', sep='=')
+ self.__class__.info = info
+
+ def _not_impl(self): pass
+
+ def _getNCPUs(self):
+ return int(self.info['sysctl_hw'].get('hw.ncpu', 1))
+
+ def _is_Intel(self):
+ if self.info['sysctl_hw'].get('hw.model', "")[0:5] == 'Intel':
+ return True
+ return False
+
+ def _is_AMD(self):
+ if self.info['sysctl_hw'].get('hw.model', "")[0:3] == 'AMD':
+ return True
+ return False
class SunOSCPUInfo(CPUInfoBase):
@@ -648,6 +672,8 @@ elif sys.platform.startswith('irix'):
cpuinfo = IRIXCPUInfo
elif sys.platform == 'darwin':
cpuinfo = DarwinCPUInfo
+elif sys.platform[0:6] == 'netbsd':
+ cpuinfo = NetBSDCPUInfo
elif sys.platform.startswith('sunos'):
cpuinfo = SunOSCPUInfo
elif sys.platform.startswith('win32'):