Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/theano/
Date: Wed, 04 Jan 2017 06:03:14
Message-Id: 1483509726.ed61d295f7fc1cce7551a29847d54645748edaef.bicatali@gentoo
1 commit: ed61d295f7fc1cce7551a29847d54645748edaef
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 4 06:01:03 2017 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 4 06:02:06 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed61d295
7
8 dev-python/theano: version bump
9 experimental gpu support
10
11 Package-Manager: Portage-2.3.3, Repoman-2.3.1
12
13 dev-python/theano/Manifest | 1 +
14 dev-python/theano/theano-0.8.2.ebuild | 54 +++++++++++++++++++++++++++++++++++
15 2 files changed, 55 insertions(+)
16
17 diff --git a/dev-python/theano/Manifest b/dev-python/theano/Manifest
18 index eb5e9e1..3358581 100644
19 --- a/dev-python/theano/Manifest
20 +++ b/dev-python/theano/Manifest
21 @@ -1,2 +1,3 @@
22 DIST Theano-0.6.0.tar.gz 1763756 SHA256 aaa75f9a9b7bf50f09ddcc01fb993cf47513179d0a7bee3d96bfeebd66e76083 SHA512 6333c673df809bed3af952e0759cce4878ed21684367c6eb20e422363c7c5696ea59239ff6a448c6a32771b1069d441b0e3d049f9708ae69d790412303b8ebbd WHIRLPOOL 946fcacb87b7745e72282f5f7e6b67db5fd0e365f55b2c97a8e9e506e30986d90da7c3789636892ca316da33f4f064f99d31fc3771678457dd609fd0c43d9010
23 DIST Theano-0.7.0.tar.gz 1985387 SHA256 05b0f6d2467735abea13bdc5c2c1ce3c53f1b89f9ebc5a43abdf71f88cf818b3 SHA512 6e6bf9afdebf3c281d71f5ceda73792e0a52b403b18776a639665767ac73ac4920b5042e29d656d517b8f023e5f9cd5a27086e0456dc40c42abf6f3569da3f06 WHIRLPOOL b79906e39eb8f7cad26160148465b4719d1011e1a4626c98fdb55cd273ff289b0c01278d51fdc8271b71434be0fd036f8259a315b07639e9ad83d1e3bf313687
24 +DIST Theano-0.8.2.tar.gz 2914631 SHA256 7463c8f7ed1a787bf881f36d38a38607150186697e7ce7e78bfb94b7c6af8930 SHA512 d7bad7ed4c9453470b66df2ada4587fbe9effc134c0604d11576630a613568386d41aa7dd4a77f8b7a1eb6d8a2f76a8e809b1ac3ae18c85a0c55ba4a059b865e WHIRLPOOL 05ae7308054e74fcbcb9057aca5a0e8ed7db7980e4a258bf5143f2a1ae9cfb430808a48467d6a185cdb4215ce33163a1e6e1961284e593c90cc9be6f0c9a5cbb
25
26 diff --git a/dev-python/theano/theano-0.8.2.ebuild b/dev-python/theano/theano-0.8.2.ebuild
27 new file mode 100644
28 index 00000000..c48464f
29 --- /dev/null
30 +++ b/dev-python/theano/theano-0.8.2.ebuild
31 @@ -0,0 +1,54 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=6
37 +
38 +PYTHON_COMPAT=( python2_7 python3_{4,5} )
39 +
40 +inherit distutils-r1 versionator
41 +
42 +MYPN=Theano
43 +MYP=${MYPN}-$(replace_version_separator 3 '')
44 +
45 +DESCRIPTION="Define and optimize multi-dimensional arrays mathematical expressions"
46 +HOMEPAGE="https://github.com/Theano/Theano"
47 +SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz"
48 +
49 +SLOT="0"
50 +LICENSE="BSD"
51 +IUSE="doc test"
52 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
53 +
54 +RDEPEND="
55 + dev-python/numpy[${PYTHON_USEDEP}]
56 + dev-python/six[${PYTHON_USEDEP}]
57 + sci-libs/scipy[${PYTHON_USEDEP}]
58 +"
59 +DEPEND="${RDEPEND}
60 + dev-python/setuptools[${PYTHON_USEDEP}]
61 + test? (
62 + dev-python/flake8[${PYTHON_USEDEP}]
63 + dev-python/nose[${PYTHON_USEDEP}]
64 + dev-python/nose-parameterized[${PYTHON_USEDEP}]
65 + dev-python/pyflakes[${PYTHON_USEDEP}]
66 + )"
67 +S="${WORKDIR}/${MYP}"
68 +
69 +python_prepare_all() {
70 + # remove bundled six
71 + find -type f -name "*.py" -exec \
72 + sed -e 's:theano.compat.six:six:g' -i '{}' + || die
73 + rm ${PN}/compat/six.py || die
74 + distutils-r1_python_prepare_all
75 +}
76 +
77 +python_test() {
78 + nosetests --verbosity=3 || die
79 +}
80 +
81 +pkg_postinst() {
82 + optfeature \
83 + "Make picture of Theano computation graph" dev-python/pydot-ng \
84 + "Required for GPU/CPU code generation" dev-python/pygpu
85 +}