Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/ipython: ipython-2.4.0.ebuild ChangeLog
Date: Sun, 08 Feb 2015 19:05:21
Message-Id: 20150208190516.8FCEE1156E@oystercatcher.gentoo.org
1 xarthisius 15/02/08 19:05:16
2
3 Modified: ChangeLog
4 Added: ipython-2.4.0.ebuild
5 Log:
6 Version bump, allow to use node.js for nbconvert instead of app-text/pandoc
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x5D21B852895192F9)
9
10 Revision Changes Path
11 1.158 dev-python/ipython/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ChangeLog?rev=1.158&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ChangeLog?rev=1.158&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ChangeLog?r1=1.157&r2=1.158
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/ipython/ChangeLog,v
20 retrieving revision 1.157
21 retrieving revision 1.158
22 diff -u -r1.157 -r1.158
23 --- ChangeLog 31 Jan 2015 07:05:41 -0000 1.157
24 +++ ChangeLog 8 Feb 2015 19:05:16 -0000 1.158
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/ipython
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ChangeLog,v 1.157 2015/01/31 07:05:41 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ChangeLog,v 1.158 2015/02/08 19:05:16 xarthisius Exp $
30 +
31 +*ipython-2.4.0 (08 Feb 2015)
32 +
33 + 08 Feb 2015; Kacper Kowalik <xarthisius@g.o> +ipython-2.4.0.ebuild:
34 + Version bump, allow to use node.js for nbconvert instead of app-text/pandoc
35
36 31 Jan 2015; Mike Frysinger <vapier@g.o> ipython-2.3.1.ebuild:
37 Add mips love.
38
39
40
41 1.1 dev-python/ipython/ipython-2.4.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ipython-2.4.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ipython/ipython-2.4.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ipython-2.4.0.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ipython-2.4.0.ebuild,v 1.1 2015/02/08 19:05:16 xarthisius Exp $
51
52 EAPI=5
53
54 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
55 PYTHON_REQ_USE='readline,sqlite'
56
57 inherit distutils-r1 virtualx
58
59 DESCRIPTION="Advanced interactive shell for Python"
60 HOMEPAGE="http://ipython.org/"
61 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
62
63 LICENSE="BSD"
64 SLOT="0"
65 KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
66
67 IUSE="doc examples matplotlib mongodb notebook nbconvert octave qt4 +smp test wxwidgets"
68
69 PY2_USEDEP=$(python_gen_usedep python2_7)
70 CDEPEND="
71 dev-python/decorator[${PYTHON_USEDEP}]
72 dev-python/pexpect[${PYTHON_USEDEP}]
73 dev-python/setuptools[${PYTHON_USEDEP}]
74 dev-python/simplegeneric[${PYTHON_USEDEP}]
75 dev-python/pyparsing[${PYTHON_USEDEP}]
76 matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )
77 mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
78 octave? ( dev-python/oct2py[${PYTHON_USEDEP}] )
79 smp? ( >=dev-python/pyzmq-2.1.11[${PYTHON_USEDEP}] )
80 wxwidgets? ( $(python_gen_cond_dep 'dev-python/wxpython[${PYTHON_USEDEP}]' python2_7) )"
81 RDEPEND="${CDEPEND}
82 notebook? (
83 >=www-servers/tornado-3.1[${PYTHON_USEDEP}]
84 dev-python/pygments[${PYTHON_USEDEP}]
85 >=dev-python/pyzmq-2.1.11[${PYTHON_USEDEP}]
86 dev-python/jinja[${PYTHON_USEDEP}]
87 dev-libs/mathjax
88 )
89 nbconvert? (
90 || ( >=net-libs/nodejs-0.9.12 >=app-text/pandoc-1.12.1 )
91 dev-python/pygments[${PYTHON_USEDEP}]
92 dev-python/sphinx[${PYTHON_USEDEP}]
93 dev-python/jinja[${PYTHON_USEDEP}]
94 )
95 qt4? ( || ( dev-python/PyQt4[${PYTHON_USEDEP}] dev-python/pyside[${PYTHON_USEDEP}] )
96 dev-python/pygments[${PYTHON_USEDEP}]
97 >=dev-python/pyzmq-2.1.11[${PYTHON_USEDEP}] )"
98 DEPEND="${CDEPEND}
99 test? (
100 dev-python/nose[${PYTHON_USEDEP}]
101 dev-python/mock[${PY2_USEDEP}]
102 >=www-servers/tornado-3.1[${PYTHON_USEDEP}]
103 dev-python/sphinx[${PYTHON_USEDEP}]
104 dev-python/jinja[${PYTHON_USEDEP}]
105 )
106 doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
107 dev-python/numpydoc[${PYTHON_USEDEP}]
108 dev-python/nose[${PYTHON_USEDEP}]
109 dev-python/cython[${PYTHON_USEDEP}]
110 dev-python/rpy[${PYTHON_USEDEP}]
111 $(python_gen_cond_dep 'dev-python/fabric[${PYTHON_USEDEP}]' python2_7)
112 >=www-servers/tornado-3.1[${PYTHON_USEDEP}]
113 )"
114
115 REQUIRED_USE="doc? ( matplotlib mongodb octave )"
116
117 PATCHES=( "${FILESDIR}/2.1.0-substitute-files.patch"
118 "${FILESDIR}/2.1.0-disable-tests.patch" )
119
120 DISTUTILS_IN_SOURCE_BUILD=1
121
122 python_prepare_all() {
123 # Remove out of date insource files
124 rm IPython/extensions/rmagic.py || die
125 rm IPython/extensions/octavemagic.py || die
126
127 # Prevent un-needed download during build
128 if use doc; then
129 sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
130 fi
131
132 distutils-r1_python_prepare_all
133 }
134
135 python_compile_all() {
136 use doc && emake -C docs html
137 }
138
139 src_test() {
140 # virtualx has trouble with parallel runs.
141 local DISTUTILS_NO_PARALLEL_BUILD=1
142 distutils-r1_src_test
143 }
144
145 python_test() {
146 distutils_install_for_testing
147 local fail
148 run_tests() {
149 pushd ${TEST_DIR} > /dev/null
150 "${PYTHON}" -m IPython.testing.iptestcontroller --all || fail=1
151 popd > /dev/null
152 }
153 VIRTUALX_COMMAND=run_tests virtualmake
154 [[ ${fail} ]] && die "Tests fail with ${EPYTHON}"
155 }
156
157 python_install() {
158 distutils-r1_python_install
159 ln -snf "${EPREFIX}"/usr/share/mathjax \
160 "${D}$(python_get_sitedir)"/IPython/html/static/mathjax || die
161
162 # Create ipythonX.Y symlinks.
163 # TODO:
164 # 1. do we want them for pypy? No. pypy has no numpy
165 # 2. handle it in the eclass instead (use _python_ln_rel).
166 # With pypy not an option the dosym becomes unconditional
167 dosym ../lib/python-exec/${EPYTHON}/ipython \
168 /usr/bin/ipython${EPYTHON#python}
169 }
170
171 python_install_all() {
172 use doc && local HTML_DOCS=( docs/build/html/. )
173 use examples && local EXAMPLES=( examples/. )
174 distutils-r1_python_install_all
175 }
176
177 pkg_postinst() {
178 elog "To enable sympyprinting, it's required to emerge sympy"
179 elog "To enable cythonmagic, it's required to emerge cython"
180 if use nbconvert; then
181 if [[ -z $(best_version app-text/pandoc) ]] ; then
182 einfo "Node.js will be used to convert notebooks to other formats"
183 einfo "like HTML. Support for that is still experimental. If you"
184 einfo "encounter any problems, please use app-text/pandoc instead."
185 fi
186 fi
187 }