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, 10 Jul 2023 23:04:53 +0000 (UTC)	[thread overview]
Message-ID: <1689030269.0f7b864432327befd3044070bb2aa5e19454b492.marecki@gentoo> (raw)

commit:     0f7b864432327befd3044070bb2aa5e19454b492
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 10 22:45:10 2023 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Mon Jul 10 23:04:29 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f7b8644

dev-python/pyopencl: add 2023.1.1

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

 dev-python/pyopencl/Manifest                 |  1 +
 dev-python/pyopencl/pyopencl-2023.1.1.ebuild | 72 ++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/dev-python/pyopencl/Manifest b/dev-python/pyopencl/Manifest
index 38497f7ae21e..676bb4c02d92 100644
--- a/dev-python/pyopencl/Manifest
+++ b/dev-python/pyopencl/Manifest
@@ -1 +1,2 @@
+DIST pyopencl-2023.1.1.tar.gz 472723 BLAKE2B 4960db0b9096ef624f0459f6711a6d1fc4561599f96c3b01c5efe3c183c8cc4284b63038b2a5e98d43c194a8e5ce3331886f675c0bc5f44073bc353675400985 SHA512 50c23132028bb2c35816b6c83c054eaf929d333fbb172230e0d696a5e6103ad6ee6ccbbbd0b5d3d2d3c5f02505340a885422097eccecb1bf51845658c7938c8f
 DIST pyopencl-2023.1.tar.gz 472581 BLAKE2B bfa25646b00b8d5c1a2fb7b98c18383e3013b9aa1573dc1bcbc1e056d3bd50d48fb35b7b74c4d87c079fe9334817ff325edd235bdd0de610373850c3ab057773 SHA512 3a6c61715338b31f9e9c3b9c8afe029e63d2689f9d52174c91cfe7383425643b3d08f5c125ab7e24ca776c86ff19d5adb7bfe56f1bd531ba443f99dcf9449244

diff --git a/dev-python/pyopencl/pyopencl-2023.1.1.ebuild b/dev-python/pyopencl/pyopencl-2023.1.1.ebuild
new file mode 100644
index 000000000000..19df443f1f4b
--- /dev/null
+++ b/dev-python/pyopencl/pyopencl-2023.1.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1 multiprocessing pypi
+
+DESCRIPTION="Python wrapper for OpenCL"
+HOMEPAGE="
+	https://mathema.tician.de/software/pyopencl/
+	https://pypi.org/project/pyopencl/
+"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64"
+IUSE="examples opengl"
+
+# Running tests on GPUs requires both appropriate hardware and additional permissions
+# having been granted to the user running them. Testing on CPUs with dev-libs/pocl
+# is in theory possible but has been found to be very fragile, see e.g. Bug #872308.
+RESTRICT="test"
+
+COMMON=">=virtual/opencl-2"
+# libglvnd is only needed for the headers
+DEPEND="${COMMON}
+	opengl? ( media-libs/libglvnd )"
+RDEPEND="${COMMON}
+	>=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}]"
+BDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
+	>=dev-python/pybind11-2.5.0[${PYTHON_USEDEP}]
+	test? ( dev-libs/pocl )"
+
+distutils_enable_tests pytest
+
+python_configure_all() {
+	local myconf=()
+	if use opengl; then
+		myconf+=(--cl-enable-gl)
+	fi
+
+	"${EPYTHON}" configure.py \
+		"${myconf[@]}"
+}
+
+python_test() {
+	# Use dev-libs/pocl for testing; ignore any other OpenCL devices that might be present
+	local -x PYOPENCL_TEST="portable:pthread"
+	# Set the number of threads to match MAKEOPTS
+	local -x POCL_MAX_PTHREAD_COUNT=$(makeopts_jobs)
+	# Change to the 'test' directory so that python does not try to import pyopencl from the source directory
+	# (Importing from the source directory fails, because the compiled '_cl' module is only in the build directory)
+	pushd test >/dev/null || die
+	epytest
+	popd >/dev/null || die
+}
+
+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:[~2023-07-10 23:04 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-10 23:04 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-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-05-30 12:11 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=1689030269.0f7b864432327befd3044070bb2aa5e19454b492.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