diff options
author | Ian Delaney <idella4@gentoo.org> | 2015-05-18 10:21:05 +0000 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2015-05-18 10:21:05 +0000 |
commit | 9928ce7a308b5b99878d88c9ab314f789f7211bb (patch) | |
tree | fecd95681098e40ecdb828c66694304307382d0c /dev-python/numexpr | |
parent | Stable for amd64, wrt bug #549356 (diff) | |
download | gentoo-2-9928ce7a308b5b99878d88c9ab314f789f7211bb.tar.gz gentoo-2-9928ce7a308b5b99878d88c9ab314f789f7211bb.tar.bz2 gentoo-2-9928ce7a308b5b99878d88c9ab314f789f7211bb.zip |
bump; fix build issue under py2
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/numexpr')
-rw-r--r-- | dev-python/numexpr/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/numexpr/numexpr-2.4.3.ebuild | 54 |
2 files changed, 60 insertions, 1 deletions
diff --git a/dev-python/numexpr/ChangeLog b/dev-python/numexpr/ChangeLog index 2e11682101a6..64f8ac13cd2d 100644 --- a/dev-python/numexpr/ChangeLog +++ b/dev-python/numexpr/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/numexpr # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/numexpr/ChangeLog,v 1.29 2015/04/20 04:21:19 idella4 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/numexpr/ChangeLog,v 1.30 2015/05/18 10:21:05 idella4 Exp $ + +*numexpr-2.4.3 (18 May 2015) + + 18 May 2015; Ian Delaney <idella4@gentoo.org> +numexpr-2.4.3.ebuild: + bump; fix build issue under py2 *numexpr-2.4.1 (20 Apr 2015) diff --git a/dev-python/numexpr/numexpr-2.4.3.ebuild b/dev-python/numexpr/numexpr-2.4.3.ebuild new file mode 100644 index 000000000000..cc560a140dbf --- /dev/null +++ b/dev-python/numexpr/numexpr-2.4.3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/numexpr/numexpr-2.4.3.ebuild,v 1.1 2015/05/18 10:21:05 idella4 Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit distutils-r1 + +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 + local ext + use amd64 && ext=_lp64 + cat <<- EOF > "${S}"/site.cfg + [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() { + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} + +python_test() { + # https://github.com/pydata/numexpr/issues/177 + # there are 2 known test failures under py3 only + pushd "${BUILD_DIR}"/lib > /dev/null + "${PYTHON}" -c "import numexpr; numexpr.test()" || die + pushd > /dev/null +} |