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