1 |
commit: 550ef967bc0fe397a901cc7c4b01dbac98f6189d |
2 |
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
3 |
AuthorDate: Fri Nov 27 15:37:23 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 27 15:37:23 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=550ef967 |
7 |
|
8 |
dev-python/ipython: Version bump; Import from science overlay |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
dev-python/ipython/Manifest | 1 + |
13 |
dev-python/ipython/ipython-4.0.0-r2.ebuild | 136 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 137 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest |
17 |
index 49d8b3f..c4da7b1 100644 |
18 |
--- a/dev-python/ipython/Manifest |
19 |
+++ b/dev-python/ipython/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST ipython-3.2.1.tar.gz 10884249 SHA256 c913adee7ae5b338055274c51a7d2b3cea468b5b316046fa520cd8a434b09177 SHA512 de7723e3b859d21a58a24456c76c8d8ec98c019f290f61269f46270e7647d2b49a98671138fecd75cb6f46384fde7e09618eb5c85c175e0e442c7fae7328d8fe WHIRLPOOL 9f020c167559259931dcb177d0c3a5211939632e5775c2627795ba390cf57bd62c378c15b7ee9b9ed2079180f8df8e062eb9673ed9cfc025a56f1da82c9428d1 |
22 |
+DIST ipython-4.0.0.tar.gz 6205133 SHA256 2fd276c407fb0b29e5d4884a7029a2c27fef0a06fd7a34924cce69b7cc43f4da SHA512 406e8e7779d9d8998f0621e58466ba185d89ef1639de6241f292f43410242d8eeab1d722496f82bf5d48e31584751efdc1a4177ea9e4ceb1ecb8d5acdf390ee7 WHIRLPOOL aff3f46964afd8841c00bb370b13da8acded0a1c44bfeb5543d3643fc7eb5554b4c7a4465148ef66bf33690dafa978ad9d350582971d3cd0c97cdef380df2631 |
23 |
|
24 |
diff --git a/dev-python/ipython/ipython-4.0.0-r2.ebuild b/dev-python/ipython/ipython-4.0.0-r2.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..076965c |
27 |
--- /dev/null |
28 |
+++ b/dev-python/ipython/ipython-4.0.0-r2.ebuild |
29 |
@@ -0,0 +1,136 @@ |
30 |
+# Copyright 1999-2015 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) |
37 |
+PYTHON_REQ_USE='readline,sqlite,threads(+)' |
38 |
+ |
39 |
+inherit distutils-r1 eutils virtualx |
40 |
+ |
41 |
+DESCRIPTION="Advanced interactive shell for Python" |
42 |
+HOMEPAGE="http://ipython.org/" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="BSD" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="doc examples matplotlib mongodb notebook nbconvert qt4 +smp test wxwidgets" |
49 |
+ |
50 |
+REQUIRED_USE=" |
51 |
+ test? ( doc matplotlib mongodb notebook nbconvert qt4 wxwidgets ) |
52 |
+ doc? ( mongodb )" |
53 |
+ |
54 |
+CDEPEND=" |
55 |
+ dev-python/decorator[${PYTHON_USEDEP}] |
56 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
57 |
+ dev-python/pickleshare[${PYTHON_USEDEP}] |
58 |
+ dev-python/pyparsing[${PYTHON_USEDEP}] |
59 |
+ dev-python/simplegeneric[${PYTHON_USEDEP}] |
60 |
+ dev-python/traitlets[${PYTHON_USEDEP}] |
61 |
+ matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] ) |
62 |
+ mongodb? ( <dev-python/pymongo-3[${PYTHON_USEDEP}] ) |
63 |
+ wxwidgets? ( $(python_gen_cond_dep 'dev-python/wxpython:*[${PYTHON_USEDEP}]' python2_7) )" |
64 |
+ |
65 |
+RDEPEND="${CDEPEND} |
66 |
+ notebook? ( |
67 |
+ dev-python/notebook[${PYTHON_USEDEP}] |
68 |
+ dev-python/ipywidgets[${PYTHON_USEDEP}] |
69 |
+ ) |
70 |
+ nbconvert? ( dev-python/nbconvert[${PYTHON_USEDEP}] ) |
71 |
+ qt4? ( dev-python/qtconsole )" |
72 |
+DEPEND="${CDEPEND} |
73 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
74 |
+ test? ( |
75 |
+ app-text/dvipng |
76 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
77 |
+ $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) |
78 |
+ >=dev-python/nose-0.10.1[${PYTHON_USEDEP}] |
79 |
+ dev-python/requests[${PYTHON_USEDEP}] |
80 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
81 |
+ >=www-servers/tornado-4.0[${PYTHON_USEDEP}] |
82 |
+ dev-python/testpath[${PYTHON_USEDEP}] |
83 |
+ ) |
84 |
+ doc? ( |
85 |
+ dev-python/cython[${PYTHON_USEDEP}] |
86 |
+ $(python_gen_cond_dep 'dev-python/fabric[${PYTHON_USEDEP}]' python2_7) |
87 |
+ >=dev-python/jsonschema-2.0[${PYTHON_USEDEP}] |
88 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/nose-0.10.1[${PYTHON_USEDEP}] |
90 |
+ dev-python/numpydoc[${PYTHON_USEDEP}] |
91 |
+ dev-python/rpy[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/sphinx-1.1[${PYTHON_USEDEP}] |
93 |
+ >=www-servers/tornado-4.0[${PYTHON_USEDEP}] |
94 |
+ )" |
95 |
+ |
96 |
+PDEPEND=" |
97 |
+ smp? ( dev-python/ipyparallel[${PYTHON_USEDEP}] )" |
98 |
+ |
99 |
+PATCHES=( |
100 |
+ "${FILESDIR}"/2.1.0-substitute-files.patch |
101 |
+ ) |
102 |
+ |
103 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
104 |
+ |
105 |
+python_prepare_all() { |
106 |
+ # Remove out of date insource files |
107 |
+ rm IPython/extensions/rmagic.py || die |
108 |
+ |
109 |
+ # Prevent un-needed download during build |
110 |
+ if use doc; then |
111 |
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die |
112 |
+ fi |
113 |
+ |
114 |
+ distutils-r1_python_prepare_all |
115 |
+} |
116 |
+ |
117 |
+python_compile_all() { |
118 |
+ use doc && emake -C docs html_noapi |
119 |
+} |
120 |
+ |
121 |
+python_test() { |
122 |
+ distutils_install_for_testing |
123 |
+ # https://github.com/ipython/ipython/issues/8639 |
124 |
+ # Failure of some modules only in python3.4 |
125 |
+ local fail |
126 |
+ run_tests() { |
127 |
+ pushd ${TEST_DIR} > /dev/null |
128 |
+ "${PYTHON}" -m IPython.testing.iptestcontroller --all || fail=1 |
129 |
+ popd > /dev/null |
130 |
+ } |
131 |
+ VIRTUALX_COMMAND=run_tests virtualmake |
132 |
+ [[ ${fail} ]] && die "Tests fail with ${EPYTHON}" |
133 |
+} |
134 |
+ |
135 |
+python_install() { |
136 |
+ distutils-r1_python_install |
137 |
+ |
138 |
+ # Create ipythonX.Y symlinks. |
139 |
+ # TODO: |
140 |
+ # 1. do we want them for pypy? No. pypy has no numpy |
141 |
+ # 2. handle it in the eclass instead (use _python_ln_rel). |
142 |
+ # With pypy not an option the dosym becomes unconditional |
143 |
+ dosym ../lib/python-exec/${EPYTHON}/ipython \ |
144 |
+ /usr/bin/ipython${EPYTHON#python} |
145 |
+} |
146 |
+ |
147 |
+python_install_all() { |
148 |
+ use doc && local HTML_DOCS=( docs/build/html/. ) |
149 |
+ use examples && local EXAMPLES=( examples/. ) |
150 |
+ distutils-r1_python_install_all |
151 |
+} |
152 |
+ |
153 |
+pkg_postinst() { |
154 |
+ optfeature "sympyprinting" dev-python/sympy |
155 |
+ optfeature "cythonmagic" dev-python/cython |
156 |
+ optfeature "%lprun magic command" dev-python/line_profiler |
157 |
+ optfeature "%mprun magic command" dev-python/memory_profiler |
158 |
+ if use nbconvert; then |
159 |
+ if ! has_version app-text/pandoc ; then |
160 |
+ einfo "Node.js will be used to convert notebooks to other formats" |
161 |
+ einfo "like HTML. Support for that is still experimental. If you" |
162 |
+ einfo "encounter any problems, please use app-text/pandoc instead." |
163 |
+ fi |
164 |
+ fi |
165 |
+} |