diff options
Diffstat (limited to 'dev-python/numba/numba-0.34.0.ebuild')
-rw-r--r-- | dev-python/numba/numba-0.34.0.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-python/numba/numba-0.34.0.ebuild b/dev-python/numba/numba-0.34.0.ebuild new file mode 100644 index 000000000000..7435caa43860 --- /dev/null +++ b/dev-python/numba/numba-0.34.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit distutils-r1 + +DESCRIPTION="NumPy aware dynamic Python compiler using LLVM" +HOMEPAGE="http://numba.pydata.org/" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples test" + +RDEPEND=" + >=dev-python/llvmlite-0.19[${PYTHON_USEDEP}] + >=dev-python/numpy-1.7[${PYTHON_USEDEP}] + virtual/python-enum34[${PYTHON_USEDEP}] + virtual/python-funcsigs[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( virtual/python-singledispatch[${PYTHON_USEDEP}] ) +" +# doc building highly broken + +python_test() { + cd "${BUILD_DIR}"/lib* || die + ${PYTHON} -c "import numba; numba.test()" || die +} + +python_install_all() { + use examples && local EXAMPLES=( examples/. ) + distutils-r1_python_install_all +} |