diff --git a/math/py-numexpr/Makefile b/math/py-numexpr/Makefile new file mode 100644 index 00000000000..86a43b5d3e1 --- /dev/null +++ b/math/py-numexpr/Makefile @@ -0,0 +1,33 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2017/04/23 17:45:20 shadchin Exp $ + +COMMENT = fast numerical expression evaluator for NumPy + +MODPY_EGG_VERSION = 2.6.2 +DISTNAME = numexpr-${MODPY_EGG_VERSION} +PKGNAME = py-${DISTNAME} +CATEGORIES = math + +MAINTAINER = Alexandr Shadchin + +# MIT +PERMIT_PACKAGE_CDROM = Yes + +WANTLIB += m pthread ${MODPY_WANTLIB} ${LIBCXX} + +MODULES = lang/python + +MODPY_PI = Yes +MODPY_SETUPTOOLS = Yes + +RUN_DEPENDS = math/py-numpy${MODPY_FLAVOR} +BUILD_DEPENDS = ${RUN_DEPENDS} +TEST_DEPENDS = ${RUN_DEPENDS} + +FLAVORS = python3 +FLAVOR ?= + +do-test: fake + PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} -c \ + "import numexpr; numexpr.test()" + +.include diff --git a/math/py-numexpr/distinfo b/math/py-numexpr/distinfo new file mode 100644 index 00000000000..cc27b7f6357 --- /dev/null +++ b/math/py-numexpr/distinfo @@ -0,0 +1,2 @@ +SHA256 (numexpr-2.6.2.tar.gz) = arj/XBnn9FKWa/WjIguEXPMkT+C5ZUT3+aztzC21xwU= +SIZE (numexpr-2.6.2.tar.gz) = 90970 diff --git a/math/py-numexpr/pkg/DESCR b/math/py-numexpr/pkg/DESCR new file mode 100644 index 00000000000..3a0b2064472 --- /dev/null +++ b/math/py-numexpr/pkg/DESCR @@ -0,0 +1,7 @@ +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. + +In addition, its multi-threaded capabilities can make use of all your +cores, which may accelerate computations, most specially if they are +not memory-bounded (e.g. those using transcendental functions). diff --git a/math/py-numexpr/pkg/PLIST b/math/py-numexpr/pkg/PLIST new file mode 100644 index 00000000000..562a4deac37 --- /dev/null +++ b/math/py-numexpr/pkg/PLIST @@ -0,0 +1,31 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2017/04/23 17:45:20 shadchin Exp $ +lib/python${MODPY_VERSION}/site-packages/numexpr/ +lib/python${MODPY_VERSION}/site-packages/numexpr-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ +lib/python${MODPY_VERSION}/site-packages/numexpr-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO +lib/python${MODPY_VERSION}/site-packages/numexpr-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt +lib/python${MODPY_VERSION}/site-packages/numexpr-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt +lib/python${MODPY_VERSION}/site-packages/numexpr-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/not-zip-safe +lib/python${MODPY_VERSION}/site-packages/numexpr-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt +lib/python${MODPY_VERSION}/site-packages/numexpr-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt +lib/python${MODPY_VERSION}/site-packages/numexpr/__config__.py +lib/python${MODPY_VERSION}/site-packages/numexpr/__init__.py +${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/numexpr/${MODPY_PYCACHE}/ +lib/python${MODPY_VERSION}/site-packages/numexpr/${MODPY_PYCACHE}__config__.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/numexpr/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/numexpr/${MODPY_PYCACHE}cpuinfo.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/numexpr/${MODPY_PYCACHE}expressions.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/numexpr/${MODPY_PYCACHE}necompiler.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/numexpr/${MODPY_PYCACHE}utils.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/numexpr/${MODPY_PYCACHE}version.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/numexpr/cpuinfo.py +lib/python${MODPY_VERSION}/site-packages/numexpr/expressions.py +lib/python${MODPY_VERSION}/site-packages/numexpr/interpreter.so +lib/python${MODPY_VERSION}/site-packages/numexpr/necompiler.py +lib/python${MODPY_VERSION}/site-packages/numexpr/tests/ +lib/python${MODPY_VERSION}/site-packages/numexpr/tests/__init__.py +${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/numexpr/tests/${MODPY_PYCACHE}/ +lib/python${MODPY_VERSION}/site-packages/numexpr/tests/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/numexpr/tests/${MODPY_PYCACHE}test_numexpr.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/numexpr/tests/test_numexpr.py +lib/python${MODPY_VERSION}/site-packages/numexpr/utils.py +lib/python${MODPY_VERSION}/site-packages/numexpr/version.py