public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/numba/
Date: Wed, 15 Sep 2021 18:39:36 +0000 (UTC)	[thread overview]
Message-ID: <1631731129.74cb9c3f95a52e96d5c0e204c38d2bd27f4b5d51.andrewammerlaan@gentoo> (raw)

commit:     74cb9c3f95a52e96d5c0e204c38d2bd27f4b5d51
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 15 18:38:49 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed Sep 15 18:38:49 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=74cb9c3f

dev-python/numba: add version 0.54.0

Package-Manager: Portage-3.0.23, Repoman-3.0.3
RepoMan-Options: --force
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 dev-python/numba/numba-0.54.0.ebuild | 84 ++++++++++++++++++++++++++++++++++++
 1 file changed, 84 insertions(+)

diff --git a/dev-python/numba/numba-0.54.0.ebuild b/dev-python/numba/numba-0.54.0.ebuild
new file mode 100644
index 000000000..125b20daf
--- /dev/null
+++ b/dev-python/numba/numba-0.54.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..9} )
+
+DISTUTILS_USE_SETUPTOOLS=rdepend
+inherit optfeature multiprocessing distutils-r1
+
+DESCRIPTION="NumPy aware dynamic Python compiler using LLVM"
+HOMEPAGE="https://numba.pydata.org/
+	https://github.com/numba"
+SRC_URI="https://github.com/numba/numba/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="openmp threads"
+
+RDEPEND="
+	>=dev-python/llvmlite-0.37.0[${PYTHON_USEDEP}]
+	<dev-python/llvmlite-0.38.0
+	>=dev-python/numpy-1.17.0[${PYTHON_USEDEP}]
+	threads? ( >=dev-cpp/tbb-2019.5 )
+"
+BDEPEND="
+	dev-python/pip[${PYTHON_USEDEP}]
+	dev-python/versioneer[${PYTHON_USEDEP}]
+"
+
+DISTUTILS_IN_SOURCE_BUILD=1
+distutils_enable_tests unittest
+distutils_enable_sphinx docs/source dev-python/numpydoc dev-python/sphinx_rtd_theme
+
+PATCHES=(
+	"${FILESDIR}/${PN}-0.52.0-skip_tests.patch"
+)
+
+pkg_setup() {
+	if ! use openmp; then
+		export NUMBA_DISABLE_OPENMP=1 || die
+	else
+		unset NUMBA_DISABLE_OPENMP || die
+	fi
+	if ! use threads; then
+		export NUMBA_DISABLE_TBB=1 || die
+	else
+		unset NUMBA_DISABLE_TBB || die
+		export TBBROOT="${EPREFIX}/usr" || die
+	fi
+}
+
+python_prepare_all() {
+	# This conf.py only works in a git repo
+	if use doc; then
+		git init -q || die
+		git config user.email "larry@gentoo.org" || die
+		git config user.name "Larry the Cow" || die
+		git add . || die
+		git commit -m "init" || die
+	fi
+	distutils-r1_python_prepare_all
+}
+
+python_compile() {
+	# FIXME: parallel python building fails. See Portage bug #614464 and
+	# gentoo/sci issue #1080.
+	export MAKEOPTS=-j1 || die
+	distutils-r1_python_compile
+}
+
+# https://numba.pydata.org/numba-doc/latest/developer/contributing.html?highlight=test#running-tests
+python_test() {
+	distutils_install_for_testing
+	${EPYTHON} setup.py build_ext --inplace || die \
+		"${EPYTHON} failed to build_ext"
+	${EPYTHON} runtests.py -m $(makeopts_jobs) || die \
+		"${EPYTHON} failed unittests"
+}
+
+pkg_postinst() {
+	optfeature "compile cuda code" dev-util/nvidia-cuda-sdk
+}


             reply	other threads:[~2021-09-15 18:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-15 18:39 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-06 13:45 [gentoo-commits] proj/sci:master commit in: dev-python/numba/ Nowa Ammerlaan
2023-08-09  9:19 Benda XU
2023-02-16  8:11 Horea Christian
2023-02-16  8:11 Horea Christian
2022-10-28 10:17 Andrew Ammerlaan
2022-08-07  9:07 Andrew Ammerlaan
2022-08-07  9:07 Andrew Ammerlaan
2022-01-30  8:50 Benda XU
2022-01-16 15:23 Andrew Ammerlaan
2021-09-15 18:39 Andrew Ammerlaan
2021-06-05 12:49 Andrew Ammerlaan
2021-05-11  8:38 Andrew Ammerlaan
2021-05-08 14:24 Andrew Ammerlaan
2021-05-08 14:23 Andrew Ammerlaan
2021-04-22 19:38 Aisha Tammy
2020-12-01 23:14 Aisha Tammy
2020-09-26 23:03 Aisha Tammy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1631731129.74cb9c3f95a52e96d5c0e204c38d2bd27f4b5d51.andrewammerlaan@gentoo \
    --to=andrewammerlaan@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox