Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pycuda: ChangeLog pycuda-2014.1.ebuild pycuda-9999.ebuild
Date: Tue, 02 Dec 2014 11:33:58
Message-Id: 20141202113353.9C96CB5A5@oystercatcher.gentoo.org
1 jlec 14/12/02 11:33:53
2
3 Modified: ChangeLog pycuda-9999.ebuild
4 Added: pycuda-2014.1.ebuild
5 Log:
6 dev-python/pycuda: Version BUmp; add py3.4 support, #531138
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
9
10 Revision Changes Path
11 1.23 dev-python/pycuda/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pycuda/ChangeLog?rev=1.23&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pycuda/ChangeLog?rev=1.23&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pycuda/ChangeLog?r1=1.22&r2=1.23
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/pycuda/ChangeLog,v
20 retrieving revision 1.22
21 retrieving revision 1.23
22 diff -u -r1.22 -r1.23
23 --- ChangeLog 23 Nov 2013 09:32:46 -0000 1.22
24 +++ ChangeLog 2 Dec 2014 11:33:53 -0000 1.23
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/pycuda
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pycuda/ChangeLog,v 1.22 2013/11/23 09:32:46 jlec Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pycuda/ChangeLog,v 1.23 2014/12/02 11:33:53 jlec Exp $
31 +
32 +*pycuda-2014.1 (02 Dec 2014)
33 +
34 + 02 Dec 2014; Justin Lecher <jlec@g.o> +pycuda-2014.1.ebuild,
35 + pycuda-9999.ebuild:
36 + Version BUmp; add py3.4 support, #531138
37
38 23 Nov 2013; Justin Lecher <jlec@g.o> pycuda-2013.1.1.ebuild,
39 pycuda-9999.ebuild:
40
41
42
43 1.15 dev-python/pycuda/pycuda-9999.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pycuda/pycuda-9999.ebuild?rev=1.15&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pycuda/pycuda-9999.ebuild?rev=1.15&content-type=text/plain
47 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pycuda/pycuda-9999.ebuild?r1=1.14&r2=1.15
48
49 Index: pycuda-9999.ebuild
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/dev-python/pycuda/pycuda-9999.ebuild,v
52 retrieving revision 1.14
53 retrieving revision 1.15
54 diff -u -r1.14 -r1.15
55 --- pycuda-9999.ebuild 23 Nov 2013 09:32:46 -0000 1.14
56 +++ pycuda-9999.ebuild 2 Dec 2014 11:33:53 -0000 1.15
57 @@ -1,18 +1,17 @@
58 -# Copyright 1999-2013 Gentoo Foundation
59 +# Copyright 1999-2014 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pycuda/pycuda-9999.ebuild,v 1.14 2013/11/23 09:32:46 jlec Exp $
62 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pycuda/pycuda-9999.ebuild,v 1.15 2014/12/02 11:33:53 jlec Exp $
63
64 EAPI=5
65
66 -PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
67 +PYTHON_COMPAT=( python2_7 python3_{3,4} )
68
69 -inherit cuda distutils-r1 git-2 multilib
70 +inherit cuda distutils-r1 git-r3 multilib
71
72 DESCRIPTION="Python wrapper for NVIDIA CUDA"
73 HOMEPAGE="http://mathema.tician.de/software/pycuda/ http://pypi.python.org/pypi/pycuda"
74 SRC_URI=""
75 EGIT_REPO_URI="http://git.tiker.net/trees/pycuda.git"
76 -EGIT_HAS_SUBMODULES="True"
77
78 LICENSE="GPL-2"
79 SLOT="0"
80 @@ -37,10 +36,6 @@
81 # user is (usually) not in the video group
82 RESTRICT="userpriv"
83
84 -src_unpack() {
85 - git-2_src_unpack
86 -}
87 -
88 python_prepare_all() {
89 cuda_sanitize
90 sed \
91 @@ -73,6 +68,7 @@
92 --no-use-shipped-boost \
93 "${myopts[@]}"
94 }
95 +
96 src_test() {
97 # we need write access to this to run the tests
98 addwrite /dev/nvidia0
99
100
101
102 1.1 dev-python/pycuda/pycuda-2014.1.ebuild
103
104 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pycuda/pycuda-2014.1.ebuild?rev=1.1&view=markup
105 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pycuda/pycuda-2014.1.ebuild?rev=1.1&content-type=text/plain
106
107 Index: pycuda-2014.1.ebuild
108 ===================================================================
109 # Copyright 1999-2014 Gentoo Foundation
110 # Distributed under the terms of the GNU General Public License v2
111 # $Header: /var/cvsroot/gentoo-x86/dev-python/pycuda/pycuda-2014.1.ebuild,v 1.1 2014/12/02 11:33:53 jlec Exp $
112
113 EAPI=5
114
115 PYTHON_COMPAT=( python2_7 python3_{3,4} )
116
117 inherit cuda distutils-r1 multilib
118
119 DESCRIPTION="Python wrapper for NVIDIA CUDA"
120 HOMEPAGE="http://mathema.tician.de/software/pycuda/ http://pypi.python.org/pypi/pycuda"
121 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
122
123 LICENSE="GPL-2"
124 SLOT="0"
125 KEYWORDS="~amd64 ~x86"
126 IUSE="examples opengl test"
127
128 RDEPEND="
129 dev-libs/boost[python,${PYTHON_USEDEP}]
130 dev-python/decorator[${PYTHON_USEDEP}]
131 dev-python/mako[${PYTHON_USEDEP}]
132 dev-python/numpy[${PYTHON_USEDEP}]
133 >=dev-python/pytools-2013[${PYTHON_USEDEP}]
134 dev-util/nvidia-cuda-toolkit
135 x11-drivers/nvidia-drivers
136 opengl? ( virtual/opengl )"
137 DEPEND="${RDEPEND}
138 test? (
139 dev-python/mako[${PYTHON_USEDEP}]
140 dev-python/pytest[${PYTHON_USEDEP}] )"
141
142 # We need write acccess /dev/nvidia0 and /dev/nvidiactl and the portage
143 # user is (usually) not in the video group
144 RESTRICT="userpriv"
145
146 python_prepare_all() {
147 cuda_sanitize
148 sed \
149 -e "s:'--preprocess':\'--preprocess\', \'--compiler-bindir=$(cuda_gccdir)\':g" \
150 -e "s:\"--cubin\":\'--cubin\', \'--compiler-bindir=$(cuda_gccdir)\':g" \
151 -e "s:/usr/include/pycuda:${S}/src/cuda:g" \
152 -i pycuda/compiler.py || die
153
154 touch siteconf.py || die
155
156 distutils-r1_python_prepare_all
157 }
158
159 python_configure() {
160 local myopts=()
161 use opengl && myopts+=( --cuda-enable-gl )
162
163 mkdir "${BUILD_DIR}" || die
164 cd "${BUILD_DIR}" || die
165 [[ -e ./siteconf.py ]] && rm -f ./siteconf.py
166 "${EPYTHON}" "${S}"/configure.py \
167 --boost-inc-dir="${EPREFIX}/usr/include" \
168 --boost-lib-dir="${EPREFIX}/usr/$(get_libdir)" \
169 --boost-python-libname=boost_python-$(echo ${EPYTHON} | sed 's/python//')-mt \
170 --boost-thread-libname=boost_thread-mt \
171 --cuda-root="${EPREFIX}/opt/cuda" \
172 --cudadrv-lib-dir="${EPREFIX}/usr/$(get_libdir)" \
173 --cudart-lib-dir="${EPREFIX}/opt/cuda/$(get_libdir)" \
174 --cuda-inc-dir="${EPREFIX}/opt/cuda/include" \
175 --no-use-shipped-boost \
176 "${myopts[@]}"
177 }
178
179 src_test() {
180 # we need write access to this to run the tests
181 addwrite /dev/nvidia0
182 addwrite /dev/nvidiactl
183 python_test() {
184 py.test --debug -v -v -v || die "Tests fail with ${EPYTHON}"
185 }
186 distutils-r1_src_test
187 }
188
189 python_install_all() {
190 distutils-r1_python_install_all
191
192 if use examples; then
193 insinto /usr/share/doc/${PF}
194 doins -r examples
195 fi
196 }