From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyopencl/
Date: Wed, 1 Feb 2023 23:08:25 +0000 (UTC) [thread overview]
Message-ID: <1675292898.3d57bc5a46510156ca1d1042f4b2dea0be79416e.marecki@gentoo> (raw)
commit: 3d57bc5a46510156ca1d1042f4b2dea0be79416e
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 1 23:06:26 2023 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Wed Feb 1 23:08:18 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d57bc5a
dev-python/pyopencl: add 2022.3.1
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
dev-python/pyopencl/Manifest | 1 +
dev-python/pyopencl/pyopencl-2022.3.1.ebuild | 70 ++++++++++++++++++++++++++++
2 files changed, 71 insertions(+)
diff --git a/dev-python/pyopencl/Manifest b/dev-python/pyopencl/Manifest
index 29e14c0bab22..8c6ff082a610 100644
--- a/dev-python/pyopencl/Manifest
+++ b/dev-python/pyopencl/Manifest
@@ -1 +1,2 @@
DIST pyopencl-2022.2.4.tar.gz 468743 BLAKE2B 52c0d1bfc1f01eef853efb334434eba81adfaa57d98592663145b3124110765f2afa936331e36b534abadf8d87a5c606ab32ab4452e0b8e87f1ee41c1ef2548c SHA512 b1996dec89a6921216d624e5e38407dd7ada77f137e9c245f9c2dd634dd33d208ffdad57f84739e7942c64643c37ea2d044277fed85eefb362bbc331f4be3ab0
+DIST pyopencl-2022.3.1.tar.gz 470441 BLAKE2B 86ec602f3d73a64e34fe77b7985e64db332a685b33231ad7832d7e864f3170e3eee0aed42742b9892f7950a0f672a736e169ccd0ca08a124b7f20738b348dbff SHA512 57944de69bb24f0f22fb2c0165cd4de5265f5329246fead8449d26e6cbe1204fd44ced70df9960aa54e7d285abe81d8f8a802ba62309de5f4865e882177025ae
diff --git a/dev-python/pyopencl/pyopencl-2022.3.1.ebuild b/dev-python/pyopencl/pyopencl-2022.3.1.ebuild
new file mode 100644
index 000000000000..ca30dc274779
--- /dev/null
+++ b/dev-python/pyopencl/pyopencl-2022.3.1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1 multiprocessing
+
+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 ~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
+}
next reply other threads:[~2023-02-01 23:08 UTC|newest]
Thread overview: 93+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-01 23:08 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
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=1675292898.3d57bc5a46510156ca1d1042f4b2dea0be79416e.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