Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycuda/
Date: Sun, 29 Dec 2019 13:06:44
Message-Id: 1577624775.d29017b7d3e211fad6fa86554846f42569ecfc77.soap@gentoo
1 commit: d29017b7d3e211fad6fa86554846f42569ecfc77
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 29 13:06:15 2019 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 29 13:06:15 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d29017b7
7
8 dev-python/pycuda: Remove old
9
10 Package-Manager: Portage-2.3.83, Repoman-2.3.20
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 dev-python/pycuda/Manifest | 1 -
14 dev-python/pycuda/pycuda-2016.1.2.ebuild | 84 --------------------------------
15 2 files changed, 85 deletions(-)
16
17 diff --git a/dev-python/pycuda/Manifest b/dev-python/pycuda/Manifest
18 index 8ac8fcc3560..aaeea72adc5 100644
19 --- a/dev-python/pycuda/Manifest
20 +++ b/dev-python/pycuda/Manifest
21 @@ -1,3 +1,2 @@
22 -DIST pycuda-2016.1.2.tar.gz 1603373 BLAKE2B 35a5972cd4280cace9375314635131b4e8f0f397f0a3f799fd537c13fc2190ee183ab3b2248487f0c79a15a06031776b9c3bbff9ce2545090590d004ff97f0a4 SHA512 7a1a9d6723651bdc6f584de884c46bbaa17970e622b4d800c7f36ff57817807a51c7e4aa0a40872e46fc1243087af6dda07489bb60b6a33f52740a4d7a9e69a7
23 DIST pycuda-2017.1.tar.gz 1608187 BLAKE2B 483bfd8e2da6d1c2dee9f1b5512e3f8120b29aa87d5fab49d7b1b738e9949aba14f87b102c5ff04cd2f2061c6c64c5036fdea71129e35505cce00ce76b6943aa SHA512 ce3de28de613352bec4efb86ffaa055f92ccd0c758b903aecc60af5b84f0f0643d04a869d6a23ce329c3d33670cfb266ad69c784ba917a190a11bdfea1fe6690
24 DIST pycuda-2018.1.1.tar.gz 1612853 BLAKE2B 7afbcc33891da96d726f07f1686bfb9a28b4a5ce3dfc754707166556153f91a0fbc3454d50ca678ac56b71e8dc15e8f7b797e8ff025e42aa9eed2eaaa797d952 SHA512 cb93855cf3cee6650ba0564bccce73c2f59ecbd579235eb3623ec32dde8d9247216e756b1342a876fc7d37c0159e741f5f626a86f2e7ab11c4b03c7a4e581a28
25
26 diff --git a/dev-python/pycuda/pycuda-2016.1.2.ebuild b/dev-python/pycuda/pycuda-2016.1.2.ebuild
27 deleted file mode 100644
28 index b4219ae6002..00000000000
29 --- a/dev-python/pycuda/pycuda-2016.1.2.ebuild
30 +++ /dev/null
31 @@ -1,84 +0,0 @@
32 -# Copyright 1999-2019 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -
37 -PYTHON_COMPAT=( python3_5 )
38 -
39 -inherit cuda distutils-r1
40 -
41 -DESCRIPTION="Python wrapper for NVIDIA CUDA"
42 -HOMEPAGE="https://mathema.tician.de/software/pycuda/ https://pypi.org/project/pycuda/"
43 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 -
45 -LICENSE="GPL-2"
46 -SLOT="0"
47 -KEYWORDS="~amd64"
48 -IUSE="examples opengl test"
49 -
50 -RDEPEND="
51 - dev-libs/boost:=[python,${PYTHON_USEDEP}]
52 - dev-python/decorator[${PYTHON_USEDEP}]
53 - dev-python/mako[${PYTHON_USEDEP}]
54 - dev-python/numpy[${PYTHON_USEDEP}]
55 - >=dev-python/pytools-2013[${PYTHON_USEDEP}]
56 - dev-util/nvidia-cuda-toolkit
57 - x11-drivers/nvidia-drivers
58 - opengl? ( virtual/opengl )"
59 -DEPEND="${RDEPEND}
60 - test? (
61 - dev-python/mako[${PYTHON_USEDEP}]
62 - dev-python/pytest[${PYTHON_USEDEP}] )"
63 -
64 -# We need write acccess /dev/nvidia0 and /dev/nvidiactl and the portage
65 -# user is (usually) not in the video group
66 -RESTRICT="userpriv !test? ( test )"
67 -
68 -python_prepare_all() {
69 - cuda_sanitize
70 - sed \
71 - -e "s:'--preprocess':\'--preprocess\', \'--compiler-bindir=$(cuda_gccdir)\':g" \
72 - -e "s:\"--cubin\":\'--cubin\', \'--compiler-bindir=$(cuda_gccdir)\':g" \
73 - -e "s:/usr/include/pycuda:${S}/src/cuda:g" \
74 - -i pycuda/compiler.py || die
75 -
76 - touch siteconf.py || die
77 -
78 - distutils-r1_python_prepare_all
79 -}
80 -
81 -python_configure() {
82 - mkdir -p "${BUILD_DIR}" || die
83 - cd "${BUILD_DIR}" || die
84 - rm -f ./siteconf.py || die
85 - "${EPYTHON}" "${S}"/configure.py \
86 - --boost-inc-dir="${EPREFIX}/usr/include" \
87 - --boost-lib-dir="${EPREFIX}/usr/$(get_libdir)" \
88 - --boost-python-libname=boost_python-$(echo ${EPYTHON} | sed 's/python//')-mt \
89 - --boost-thread-libname=boost_thread-mt \
90 - --cuda-root="${EPREFIX}/opt/cuda" \
91 - --cudadrv-lib-dir="${EPREFIX}/usr/$(get_libdir)" \
92 - --cudart-lib-dir="${EPREFIX}/opt/cuda/$(get_libdir)" \
93 - --cuda-inc-dir="${EPREFIX}/opt/cuda/include" \
94 - --no-use-shipped-boost \
95 - $(usex opengl --cuda-enable-gl "") || die
96 -}
97 -
98 -src_test() {
99 - # we need write access to this to run the tests
100 - addwrite /dev/nvidia0
101 - addwrite /dev/nvidiactl
102 - python_test() {
103 - py.test --debug -v -v -v || die "Tests fail with ${EPYTHON}"
104 - }
105 - distutils-r1_src_test
106 -}
107 -
108 -python_install_all() {
109 - distutils-r1_python_install_all
110 -
111 - if use examples; then
112 - insinto /usr/share/doc/${PF}
113 - doins -r examples
114 - fi
115 -}