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