summaryrefslogtreecommitdiff
path: root/dev-python/numexpr
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/numexpr
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/numexpr')
-rw-r--r--dev-python/numexpr/Manifest7
-rw-r--r--dev-python/numexpr/metadata.xml29
-rw-r--r--dev-python/numexpr/numexpr-2.6.1.ebuild58
-rw-r--r--dev-python/numexpr/numexpr-2.6.2.ebuild58
4 files changed, 152 insertions, 0 deletions
diff --git a/dev-python/numexpr/Manifest b/dev-python/numexpr/Manifest
new file mode 100644
index 000000000000..99ef22beae62
--- /dev/null
+++ b/dev-python/numexpr/Manifest
@@ -0,0 +1,7 @@
+DIST numexpr-2.6.1.tar.gz 90819 SHA256 db2ee72f277b23c82d204189290ea4b792f9bd5b9d67744b045f8c2a8e929a06 SHA512 07c88b1788ecad2c59260e7a6a15dfc21d486462a8866091d157286e5ce3b5b77f5fdab401fd30e2a5e4880398af53641d557003497c7d3658421bfcff38c31c WHIRLPOOL ef77ff356f79d2171685aa1267a63dfbd89a120300dd970bb9768df611a734483e21f78d4b1b09c4f3a5943cbbb6e9b48f03191bd7738063df076c07b6663a49
+DIST numexpr-2.6.2.tar.gz 90970 SHA256 6ab8ff5c19e7f452966bf5a3220b845cf3244fe0b96544f7f9acedcc2db5c705 SHA512 730e19e61987ecb00bfc3a65db043c88a1311046f2ea5f0a48c93d6a8d7576dbaa166b0b9b0f547e344b21b5c269be1b5aa2097e88aaac55219884c7ece55261 WHIRLPOOL 2611a752d73fc43d5420ef8001d92bfe0abba73369ce56faa41f56f4324cd0f06990f6d83d70ca66694d7fddeaf6406c91f217711108ceb720605efbf5616055
+EBUILD numexpr-2.6.1.ebuild 1385 SHA256 3d601a3cf457d887cc39e6cb761709619765983957d5fd3611855f416379c554 SHA512 dba9ff2f89c309efd420ef478a1fb8bd75036eeeb66d758c008ca5e8dc33d43f95886fb8883feeec7861108b8173f54b764852f1c5993e19f30d8cff9213e50a WHIRLPOOL 03b4b717712387175b8b0a0a8022db563500ed6bc589abeac8ac8d151c94474241527aad2ac3507faad162f9b80afbe7a4dcb4be2831b98d159a8d8324109b4b
+EBUILD numexpr-2.6.2.ebuild 1387 SHA256 aac684d8ba3918c7e164578d4599fd28b54aca5d49b2a4805f752e2e8f48dac5 SHA512 52618df3453f10c49578df1a8a341978d4908c366f7af3975e8af85086d8f668ec42952fcab02b5e2166cff6020178fc015a0cb3038545979318014206d78471 WHIRLPOOL 03a88f765a4fff8a0a729147aa224ac3a72ff7f76439ba2663c634420e11edc88ef99aa8444eca405c398c415266a52d30952e43294c3a978e6c2b5a80d226d4
+MISC ChangeLog 4671 SHA256 dd434ccf4732ac19b6a74cc7c9cb54e9dc0c793666b6ce47a6939ad9d6a91756 SHA512 6f376aba305e28030a439c2fbe7106c4c7501d8e6e7e6089ef36ae2a1e82f885f9be581975b4e7a066b1c320221db49b6f3646ad4bd1f4c29522f649e4d4d47b WHIRLPOOL aa8e8c414a9c6b87cea26e0170bf423206dc2ed24feaba537c395e76e08ad7e8b4579f5649bbacb7215f7408486a2fb850bda3677d899022a190eaab2e273981
+MISC ChangeLog-2015 4121 SHA256 55f6ecd73d3a0b6d85202453e00ee99d99559a184c1c8625ce82d239ca47ced6 SHA512 8a40e090205750749700cb0030a883bc4458ef17a3b62ac03125ba17dd34876ce482bbc7d898e078f6a49d2c7ab5ae741586c886dfbf0a2bd50e4372c0e73fb2 WHIRLPOOL 2ddec63235a0595a59e2c51576f91377a44aeaea06afc9febda899c6a4fff927bedc7c171d44574326a4b3774d7aa578263b801767c7698f2bd5d413b2e0ea46
+MISC metadata.xml 1086 SHA256 ba424d94f2cb7ff738964a6e75b9fa90ec41f8d13cea4167715b902545536a51 SHA512 9867fb98eae499a7c149e61f37a08a27167d076cec8c85392c4a6db4bb8c44314f28771db8c35d1dc1f9ac1c8af21841503e12b0f0c3c39ae6be336a72096824 WHIRLPOOL 3ec2822aa9cd842dca82055684e47f3432a49af70b4670f570fe62dc56b50313c026601805a602d11ff478f1701c0bb1038e39de05ed1647490149a0065853c0
diff --git a/dev-python/numexpr/metadata.xml b/dev-python/numexpr/metadata.xml
new file mode 100644
index 000000000000..2915727b034f
--- /dev/null
+++ b/dev-python/numexpr/metadata.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ The numexpr package evaluates multiple-operator array expressions
+ many times faster than NumPy can. It accepts the expression as a
+ string, analyzes it, rewrites it more efficiently, and compiles it
+ to faster Python code on the fly. It's the next best thing to
+ writing the expression in C and compiling it with a specialized
+ just-in-time (JIT) compiler, i.e. it does not require a compiler at
+ runtime.
+</longdescription>
+ <use>
+ <flag name="mkl">Enable support for Intel Vector Math Library, part of
+ <pkg>sci-libs/mkl</pkg>.</flag>
+ </use>
+ <upstream>
+ <remote-id type="pypi">numexpr</remote-id>
+ <remote-id type="github">pydata/numexpr</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/numexpr/numexpr-2.6.1.ebuild b/dev-python/numexpr/numexpr-2.6.1.ebuild
new file mode 100644
index 000000000000..453de3de466f
--- /dev/null
+++ b/dev-python/numexpr/numexpr-2.6.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1 flag-o-matic
+
+DESCRIPTION="Fast numerical array expression evaluator for Python and NumPy"
+HOMEPAGE="https://github.com/pydata/numexpr"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE="mkl"
+
+RDEPEND="
+ >=dev-python/numpy-1.6[${PYTHON_USEDEP}]
+ mkl? ( sci-libs/mkl )"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_prepare_all() {
+ # TODO: mkl can be used but it fails for me
+ # only works with mkl in tree. newer mkl will use pkgconfig
+ if use mkl; then
+ use amd64 && local ext="_lp64"
+ cat > site.cfg <<- _EOF_ || die
+ [mkl]
+ library_dirs = ${MKLROOT}/lib/em64t
+ include_dirs = ${MKLROOT}/include
+ mkl_libs = mkl_solver${ext}, mkl_intel${ext}, \
+ mkl_intel_thread, mkl_core, iomp5
+ _EOF_
+ fi
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile() {
+ if ! python_is_python3; then
+ local -x CFLAGS="${CFLAGS}"
+ append-cflags -fno-strict-aliasing
+ fi
+
+ distutils-r1_python_compile
+}
+
+python_test() {
+ pushd "${BUILD_DIR}"/lib >/dev/null || die
+ "${EPYTHON}" \
+ -c "import sys;import numexpr;sys.exit(0 if numexpr.test() else 1)" \
+ || die
+ pushd >/dev/null || die
+}
diff --git a/dev-python/numexpr/numexpr-2.6.2.ebuild b/dev-python/numexpr/numexpr-2.6.2.ebuild
new file mode 100644
index 000000000000..03821ec488ab
--- /dev/null
+++ b/dev-python/numexpr/numexpr-2.6.2.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1 flag-o-matic
+
+DESCRIPTION="Fast numerical array expression evaluator for Python and NumPy"
+HOMEPAGE="https://github.com/pydata/numexpr"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="mkl"
+
+RDEPEND="
+ >=dev-python/numpy-1.6[${PYTHON_USEDEP}]
+ mkl? ( sci-libs/mkl )"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_prepare_all() {
+ # TODO: mkl can be used but it fails for me
+ # only works with mkl in tree. newer mkl will use pkgconfig
+ if use mkl; then
+ use amd64 && local ext="_lp64"
+ cat > site.cfg <<- _EOF_ || die
+ [mkl]
+ library_dirs = ${MKLROOT}/lib/em64t
+ include_dirs = ${MKLROOT}/include
+ mkl_libs = mkl_solver${ext}, mkl_intel${ext}, \
+ mkl_intel_thread, mkl_core, iomp5
+ _EOF_
+ fi
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile() {
+ if ! python_is_python3; then
+ local -x CFLAGS="${CFLAGS}"
+ append-cflags -fno-strict-aliasing
+ fi
+
+ distutils-r1_python_compile
+}
+
+python_test() {
+ pushd "${BUILD_DIR}"/lib >/dev/null || die
+ "${EPYTHON}" \
+ -c "import sys;import numexpr;sys.exit(0 if numexpr.test() else 1)" \
+ || die
+ pushd >/dev/null || die
+}