1 |
commit: 5e3f2bedb78f4adfec1050ba03105f572e3e8866 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 29 09:52:04 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 29 09:52:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e3f2bed |
7 |
|
8 |
dev-python/theano-pymc: bump to 1.0.14 |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-python/theano-pymc/Manifest | 1 + |
14 |
dev-python/theano-pymc/theano-pymc-1.0.14.ebuild | 42 ++++++++++++++++++++++++ |
15 |
2 files changed, 43 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/theano-pymc/Manifest b/dev-python/theano-pymc/Manifest |
18 |
index 1ff0b282387..033bccb6c7f 100644 |
19 |
--- a/dev-python/theano-pymc/Manifest |
20 |
+++ b/dev-python/theano-pymc/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST theano-pymc-1.0.13.tar.gz 12975871 BLAKE2B 71528868885084d7c37f1f5cc5156aca5e764d09f0dc57aa46e21240ee2959aafb5882aef8977d9f215b051265d0d9bc3a7097ac0bb6d427cfc076ea6f591905 SHA512 da25e386965695a5630c54a671a7a573d0f0fae2eeeacf4f65130e4e4caf416373852ac14b1eb07ae39c194febe854d71fffe2adc24c348f64a4b73b43564229 |
23 |
+DIST theano-pymc-1.0.14.tar.gz 12979426 BLAKE2B e6db87a348d6e7003f8b1ff4e0634335d53d734ea922951edeaab06ec54d51f1d7930a03f6dca14979930abb6212f873d606a9adada46d5b606854c5d8a6c6a5 SHA512 4ddfe5978f33cea96b20763cb01eecf1ec6c0c6b97ac892d647e28b607e61b11862739e5836356ab87e2002e992febe35ce9e1e72d37732074be2dbed64b50b9 |
24 |
|
25 |
diff --git a/dev-python/theano-pymc/theano-pymc-1.0.14.ebuild b/dev-python/theano-pymc/theano-pymc-1.0.14.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..e66b350a5ee |
28 |
--- /dev/null |
29 |
+++ b/dev-python/theano-pymc/theano-pymc-1.0.14.ebuild |
30 |
@@ -0,0 +1,42 @@ |
31 |
+# Copyright 2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
37 |
+PYTHON_COMPAT=( python3_9 ) |
38 |
+inherit distutils-r1 optfeature |
39 |
+ |
40 |
+DESCRIPTION="Library for operating on mathematical expressions with multi-dimensional arrays" |
41 |
+HOMEPAGE="https://github.com/pymc-devs/Theano-PyMC" |
42 |
+SRC_URI="https://github.com/pymc-devs/Theano-PyMC/archive/rel-${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+S="${WORKDIR}"/Theano-PyMC-rel-${PV} |
44 |
+ |
45 |
+LICENSE="BSD" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
51 |
+ dev-python/six[${PYTHON_USEDEP}] |
52 |
+ dev-python/scipy[${PYTHON_USEDEP}]" |
53 |
+ |
54 |
+distutils_enable_sphinx doc 'dev-python/sphinx_rtd_theme' |
55 |
+distutils_enable_tests pytest |
56 |
+ |
57 |
+python_prepare_all() { |
58 |
+ sed -i -e "s/, 'flake8'//" setup.py || die |
59 |
+ sed -i -e "s/tests.\*/tests\*/" setup.py || die |
60 |
+ |
61 |
+ distutils-r1_python_prepare_all |
62 |
+} |
63 |
+ |
64 |
+python_test() { |
65 |
+ distutils_install_for_testing |
66 |
+ pytest -vv || die "Tests failed with ${EPYTHON}" |
67 |
+} |
68 |
+ |
69 |
+pkg_postinst() { |
70 |
+ optfeature "GPU code generation/execution on NVIDIA gpus" dev-util/nvidia-cuda-toolkit dev-util/nvidia-cuda-sdk |
71 |
+ optfeature "GPU/CPU code generation on CUDA and OpenCL devices" dev-libs/libgpuarray dev-python/pycuda |
72 |
+} |