1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_6} )
10 DESCRIPTION="NumPy aware dynamic Python compiler using LLVM"
11 HOMEPAGE="http://numba.pydata.org/"
12 SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18 RESTRICT="!test? ( test )"
21 >=dev-python/llvmlite-0.22.0[${PYTHON_USEDEP}]
22 dev-python/numpy[${PYTHON_USEDEP}]
23 virtual/python-enum34[${PYTHON_USEDEP}]
24 virtual/python-funcsigs[${PYTHON_USEDEP}]
25 virtual/python-singledispatch[${PYTHON_USEDEP}]
28 dev-python/setuptools[${PYTHON_USEDEP}]
29 test? ( dev-python/pytest[${PYTHON_USEDEP}] )
33 "${FILESDIR}"/numba-skip-tests.patch
37 cd "${BUILD_DIR}/lib" || die
38 ${EPYTHON} -m numba.runtests -v || die
41 python_install_all() {
42 distutils-r1_python_install_all
44 insinto /usr/share/doc/${PF}
46 docompress -x /usr/share/doc/${PF}/examples