diff options
author | Sébastien Fabbro <bicatali@gentoo.org> | 2017-06-27 04:04:02 +0000 |
---|---|---|
committer | Sébastien Fabbro <bicatali@gentoo.org> | 2017-06-28 04:00:09 +0000 |
commit | 7478d836b08d2d5ddc026466a160dff8271252c1 (patch) | |
tree | d8b266b4607dddf79f1e8fa8072a106098d4d5c4 /dev-python/numexpr | |
parent | dev-python/blosc: version bump (diff) | |
download | gentoo-7478d836b08d2d5ddc026466a160dff8271252c1.tar.gz gentoo-7478d836b08d2d5ddc026466a160dff8271252c1.tar.bz2 gentoo-7478d836b08d2d5ddc026466a160dff8271252c1.zip |
dev-python/numexpr: version bump
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-python/numexpr')
-rw-r--r-- | dev-python/numexpr/Manifest | 1 | ||||
-rw-r--r-- | dev-python/numexpr/numexpr-2.6.2.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/numexpr/Manifest b/dev-python/numexpr/Manifest index 183b02c5feb8..80baaa3be36e 100644 --- a/dev-python/numexpr/Manifest +++ b/dev-python/numexpr/Manifest @@ -1 +1,2 @@ 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 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 +} |