Lines 4-15
Link Here
|
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
|
6 |
|
7 |
# python eclass cruft |
|
|
8 |
PYTHON_DEPEND="*:2.6" |
7 |
PYTHON_DEPEND="*:2.6" |
9 |
PYTHON_USE_WITH="readline sqlite" |
8 |
PYTHON_USE_WITH="readline sqlite" |
10 |
PYTHON_MODNAME="IPython" |
|
|
11 |
SUPPORT_PYTHON_ABIS="1" |
9 |
SUPPORT_PYTHON_ABIS="1" |
12 |
RESTRICT_PYTHON_ABIS="2.5 *-pypy-*" |
10 |
RESTRICT_PYTHON_ABIS="2.5 2.7-pypy-*" |
13 |
|
11 |
|
14 |
inherit distutils elisp-common eutils virtualx |
12 |
inherit distutils elisp-common eutils virtualx |
15 |
|
13 |
|
Lines 21-26
Link Here
|
21 |
SLOT="0" |
19 |
SLOT="0" |
22 |
KEYWORDS="~amd64 ~x86" |
20 |
KEYWORDS="~amd64 ~x86" |
23 |
IUSE="doc emacs examples matplotlib mongodb notebook +smp qt4 test wxwidgets" |
21 |
IUSE="doc emacs examples matplotlib mongodb notebook +smp qt4 test wxwidgets" |
|
|
22 |
PYTHON_MODNAME="IPython" |
24 |
|
23 |
|
25 |
CDEPEND="dev-python/decorator |
24 |
CDEPEND="dev-python/decorator |
26 |
|| ( dev-python/argparse =dev-lang/python-2.7* >=dev-lang/python-3.2 ) |
25 |
|| ( dev-python/argparse =dev-lang/python-2.7* >=dev-lang/python-3.2 ) |
Lines 48-78
Link Here
|
48 |
|
47 |
|
49 |
# fix for gentoo python scripts |
48 |
# fix for gentoo python scripts |
50 |
sed -i \ |
49 |
sed -i \ |
51 |
-e "/ipython_cmd/s/ipython3/ipython/g" \ |
50 |
-e "/ipython_cmd/s/ipython3' if py3compat.PY3 else 'ipython/ipython/g" \ |
52 |
IPython/frontend/terminal/console/tests/test_console.py \ |
51 |
IPython/frontend/terminal/console/tests/test_console.py \ |
53 |
IPython/lib/irunner.py \ |
|
|
54 |
IPython/testing/tools.py || die |
52 |
IPython/testing/tools.py || die |
55 |
|
53 |
|
56 |
sed -i \ |
54 |
sed -e '/_ipython_cmd/s/ipython3" if py3compat.PY3 else "ipython/ipython/g' \ |
57 |
-e "s/find_scripts(True, suffix='3')/find_scripts(True)/" \ |
55 |
-i IPython/lib/irunner.py || die |
58 |
setup3.py || die |
|
|
59 |
|
56 |
|
60 |
# failing tests |
57 |
sed -e "s:True, suffix='3':True:" -i setup.py |
61 |
sed -i \ |
58 |
|
62 |
-e 's/test_smoketest_aimport/_&/' \ |
59 |
# Disable failing tests |
63 |
-e 's/test_smoketest_autoreload/_&/' \ |
|
|
64 |
IPython/extensions/tests/test_autoreload.py || die |
65 |
sed -i \ |
60 |
sed -i \ |
66 |
-e 's/test_pylab_import_all_disabled/_&/' \ |
61 |
-e 's/test_pylab_import_all_disabled/_&/' \ |
67 |
-e 's/test_pylab_import_all_enabled/_&/' \ |
62 |
-e 's/test_pylab_import_all_enabled/_&/' \ |
68 |
IPython/lib/tests/test_irunner_pylab_magic.py || die |
63 |
IPython/lib/tests/test_irunner_pylab_magic.py || die |
|
|
64 |
|
69 |
sed -i \ |
65 |
sed -i \ |
70 |
-e '/test_startup_py/i\\@dec.known_failure_py3' \ |
66 |
-e '/test_startup_py/i\\ @dec.known_failure_py3' \ |
71 |
-e '/test_startup_ipy/i\\@dec.known_failure_py3' \ |
67 |
-e '/test_startup_ipy/i\\ @dec.known_failure_py3' \ |
72 |
IPython/core/tests/test_profile.py || die |
68 |
IPython/core/tests/test_profile.py || die |
73 |
sed -i \ |
69 |
|
74 |
-e '/test_tclass/i\\ @dec.known_failure_py3' \ |
70 |
rm -f IPython/extensions/tests/test_octavemagic.py || die |
75 |
IPython/core/tests/test_run.py || die |
|
|
76 |
|
71 |
|
77 |
# installation directory for documentation |
72 |
# installation directory for documentation |
78 |
sed -i \ |
73 |
sed -i \ |
Lines 80-87
Link Here
|
80 |
-e "/pjoin(docdirbase,'manual')/s/manual/html/" \ |
75 |
-e "/pjoin(docdirbase,'manual')/s/manual/html/" \ |
81 |
setupbase.py || die "sed failed" |
76 |
setupbase.py || die "sed failed" |
82 |
|
77 |
|
83 |
rm -rf docs/html/{.buildinfo,_sources,objects.inv} || die |
|
|
84 |
|
85 |
if ! use doc; then |
78 |
if ! use doc; then |
86 |
sed -i \ |
79 |
sed -i \ |
87 |
-e "/(pjoin(docdirbase, 'extensions'), igridhelpfiles),/d" \ |
80 |
-e "/(pjoin(docdirbase, 'extensions'), igridhelpfiles),/d" \ |