dev-python/ipython: Restore ipythonX.Y symlinks, #624834
authorMichał Górny <mgorny@gentoo.org>
Wed, 23 Aug 2017 15:50:57 +0000 (17:50 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 23 Aug 2017 16:07:07 +0000 (18:07 +0200)
dev-python/ipython/ipython-5.4.1.ebuild
dev-python/ipython/ipython-6.1.0.ebuild

index 5dedf5e9ea25150d1ebe224270da3bde46b75c28..656cfeab870f7e9841462fca81376e71b99d97ef 100644 (file)
@@ -92,6 +92,18 @@ python_test() {
        popd >/dev/null || die
 }
 
+python_install() {
+       distutils-r1_python_install
+
+       # Create ipythonX.Y symlinks.
+       # TODO:
+       # 1. do we want them for pypy? No.  pypy has no numpy
+       # 2. handle it in the eclass instead (use _python_ln_rel).
+       # With pypy not an option the dosym becomes unconditional
+       dosym ../lib/python-exec/${EPYTHON}/ipython \
+               /usr/bin/ipython${EPYTHON#python}
+}
+
 python_install_all() {
        distutils-r1_python_install_all
 
index 196f37a3dd75ada457436b25390d24dfd637a9af..92c5eab5d507cefa32b03d325a91243f3afad164 100644 (file)
@@ -91,6 +91,18 @@ python_test() {
        popd >/dev/null || die
 }
 
+python_install() {
+       distutils-r1_python_install
+
+       # Create ipythonX.Y symlinks.
+       # TODO:
+       # 1. do we want them for pypy? No.  pypy has no numpy
+       # 2. handle it in the eclass instead (use _python_ln_rel).
+       # With pypy not an option the dosym becomes unconditional
+       dosym ../lib/python-exec/${EPYTHON}/ipython \
+               /usr/bin/ipython${EPYTHON#python}
+}
+
 python_install_all() {
        distutils-r1_python_install_all
        if use examples; then