public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyopencl/
Date: Mon, 30 May 2022 12:11:14 +0000 (UTC)	[thread overview]
Message-ID: <1653908172.63f2c9778bc3b568767ee8df73d1944e0be14221.marecki@gentoo> (raw)

commit:     63f2c9778bc3b568767ee8df73d1944e0be14221
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Mon May 30 10:56:12 2022 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Mon May 30 10:56:12 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63f2c977

dev-python/pyopencl: add 2022.1.5

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 dev-python/pyopencl/Manifest                 |  1 +
 dev-python/pyopencl/pyopencl-2022.1.5.ebuild | 57 ++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/dev-python/pyopencl/Manifest b/dev-python/pyopencl/Manifest
index 7f8032a1f828..cb94944ac75d 100644
--- a/dev-python/pyopencl/Manifest
+++ b/dev-python/pyopencl/Manifest
@@ -1 +1,2 @@
+DIST pyopencl-2022.1.5.tar.gz 454129 BLAKE2B 266bc327c9af5654287fc47cdf4e6002c7cddcd6f5e55bb70bb62aaee666dc5c102f78d4e946f010c1e109390c1d2e981e7ca6ca002d10f66248cb008b308734 SHA512 e6eb3e6d886d8ca1d94867a398b286556fd2d93535bb8481c7603cd521cd47606ce3d9cd6422830c6404305a4a1293234d8774fdda6923bdd2b4fc21fb39d377
 DIST pyopencl-2022.1.tar.gz 452537 BLAKE2B 0d4d178a6bdf14dc3769dcb78c42bc894c0a443a6811fe9b25dedbc4a43debc06d1a1c32cb2a0df06fe16d1b2e78e65ef4f3ca8e9931be39384b3c8c813336de SHA512 e873807e757c19b59dbac2a0522fbb9c6e8af955d62bdcf06d8f3d792db3c9d2ce15372a6eefdca5b3f6756c35a85b5ff8d7dc1b6449bfd12c2b588576dd6f24

diff --git a/dev-python/pyopencl/pyopencl-2022.1.5.ebuild b/dev-python/pyopencl/pyopencl-2022.1.5.ebuild
new file mode 100644
index 000000000000..dc2cb443735e
--- /dev/null
+++ b/dev-python/pyopencl/pyopencl-2022.1.5.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1
+
+DESCRIPTION="Python wrapper for OpenCL"
+HOMEPAGE="https://mathema.tician.de/software/pyopencl/
+	https://pypi.org/project/pyopencl/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples opengl"
+
+DEPEND=">=virtual/opencl-2"
+RDEPEND="${DEPEND}
+	>=dev-python/mako-0.3.6[${PYTHON_USEDEP}]
+	dev-python/numpy[${PYTHON_USEDEP}]
+	>=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}]
+	>=dev-python/pytools-2021.2.7[${PYTHON_USEDEP}]"
+# libglvnd is only needed for the headers
+BDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
+	>=dev-python/pybind11-2.5.0[${PYTHON_USEDEP}]
+	opengl? ( media-libs/libglvnd )"
+
+# The test suite fails if there are no OpenCL platforms available, and
+# even if there is one (which requires the presence of both an OpenCL
+# runtime *and* hardware supported by it - simply emerging any runtime
+# is not enough) the vast majority of tests end up skipped because by
+# default the portage user hasn't got sufficient privileges to talk
+# to the GPU.
+RESTRICT="test"
+
+python_configure_all() {
+	local myconf=()
+	if use opengl; then
+		myconf+=(--cl-enable-gl)
+	fi
+
+	"${EPYTHON}" configure.py \
+		"${myconf[@]}"
+}
+
+python_install_all() {
+	if use examples; then
+		dodoc -r examples
+		docompress -x /usr/share/doc/${PF}/examples
+	fi
+
+	distutils-r1_python_install_all
+}


             reply	other threads:[~2022-05-30 12:11 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-30 12:11 Marek Szuba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-05  8:33 [gentoo-commits] repo/gentoo:master commit in: dev-python/pyopencl/ Michał Górny
2024-10-05  8:08 Arthur Zamarin
2024-08-09 17:19 Sam James
2024-07-10 11:39 Jakov Smolić
2024-02-18 13:23 Michał Górny
2024-02-18 11:43 Jakov Smolić
2024-02-01 21:21 Marek Szuba
2023-11-25  8:38 Sam James
2023-10-26  0:31 Marek Szuba
2023-09-26  4:44 Michał Górny
2023-09-25 19:26 Sam James
2023-08-20  2:30 Michał Górny
2023-08-19 20:15 Sam James
2023-08-19 16:24 Marek Szuba
2023-07-10 23:04 Marek Szuba
2023-06-27 12:05 Michał Górny
2023-06-27  6:55 Sam James
2023-05-21 11:25 Marek Szuba
2023-03-11  9:49 Michał Górny
2023-03-11  9:49 Michał Górny
2023-03-11  8:10 Arthur Zamarin
2023-02-01 23:08 Marek Szuba
2022-12-25 17:45 Michał Górny
2022-12-25 16:42 Sam James
2022-11-14 11:06 Marek Szuba
2022-11-14 11:06 Marek Szuba
2022-11-08  4:54 Jakov Smolić
2022-11-01 13:10 Marek Szuba
2022-10-25 20:28 Sam James
2022-09-22  1:33 Marek Szuba
2022-09-02 11:00 Marek Szuba
2022-09-02 11:00 Marek Szuba
2022-08-21  1:16 Marek Szuba
2022-07-27 23:37 Marek Szuba
2022-07-27 23:37 Marek Szuba
2022-07-27 23:37 Marek Szuba
2022-07-26  4:46 Sam James
2022-06-30  9:02 Marek Szuba
2022-06-29 15:52 Marek Szuba
2022-03-28 10:14 Michał Górny
2022-03-28  6:51 Agostino Sarubbo
2022-02-21 15:40 Marek Szuba
2022-02-18  9:19 Michał Górny
2022-02-17 22:02 Jakov Smolić
2022-01-17 21:08 Marek Szuba
2022-01-01  0:23 Marek Szuba
2021-12-17 18:57 Michał Górny
2021-12-17 18:30 Jakov Smolić
2021-11-17 13:40 Marek Szuba
2021-08-16  6:13 Michał Górny
2021-07-13 13:11 Marek Szuba
2021-07-01 11:02 Marek Szuba
2021-06-25 10:14 Marek Szuba
2021-06-05 13:23 Marek Szuba
2021-05-25 12:31 Marek Szuba
2021-05-17 15:24 Marek Szuba
2021-05-17 14:50 Marek Szuba
2021-04-22 16:51 Marek Szuba
2021-04-18  7:05 Michał Górny
2021-04-18  1:44 Sam James
2021-03-15 12:49 Marek Szuba
2021-01-18 18:48 Michał Górny
2021-01-18 16:52 Sam James
2020-12-16 11:30 Michał Górny
2020-12-16 11:30 Michał Górny
2020-12-16 11:14 Sam James
2020-12-09 10:28 Marek Szuba
2020-09-21 20:09 Marek Szuba
2020-08-24 17:19 Marek Szuba
2020-07-29 11:33 Marek Szuba
2020-06-30 15:44 Marek Szuba
2020-06-29  6:19 Agostino Sarubbo
2020-06-26 17:35 Marek Szuba
2020-06-26 16:36 Marek Szuba
2020-06-26 16:10 Marek Szuba
2020-05-17 13:47 Michał Górny
2020-05-17  7:50 Michał Górny
2020-03-20  9:58 David Seifert
2019-12-15 19:16 Michał Górny
2018-07-02  0:49 Thomas Deutschmann
2018-06-30 10:04 Pacho Ramos
2018-06-26 17:43 Pacho Ramos
2018-03-17 10:51 Michał Górny
2018-01-05 23:19 Michał Górny
2017-09-25 12:42 Michael Palimaka
2017-09-18 19:51 Patrick Lauer
2017-07-31 10:49 Tobias Klausmann
2017-07-12 19:00 Pacho Ramos
2017-05-02 11:58 Michał Górny
2016-06-13  9:12 Patrick Lauer
2016-02-10 16:15 Justin Lecher
2016-01-06  8:28 Patrick Lauer

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=1653908172.63f2c9778bc3b568767ee8df73d1944e0be14221.marecki@gentoo \
    --to=marecki@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