dev-lang/python-exec: Wrappers were moved to /usr/bin (in git)
authorMichał Górny <mgorny@gentoo.org>
Mon, 8 Feb 2016 17:54:10 +0000 (18:54 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 8 Feb 2016 17:56:38 +0000 (18:56 +0100)
The both wrappers were moved to /usr/bin in order to make it possible to
symlink them in place of /usr/bin/python{,2,3}. Compatibility symlinks
are now installed in place of old locations.

dev-lang/python-exec/python-exec-9999.ebuild

index 98e0119126636e62505493225ef5713c120c9b70..8b64e11b3bcb874b71bf91832fded3234ccaeaae 100644 (file)
@@ -68,14 +68,14 @@ src_install() {
        insinto /etc/python-exec
        doins "${T}"/python-exec.conf
 
+       # Create compatibility symlinks
+       dosym ../../bin/python-exec2 /usr/lib/python-exec/python-exec2-c
+       dosym ../../bin/python-exec2.py /usr/lib/python-exec/python-exec2
+
+       # Create Python interpreter executable wrappers
        local f
-       for f in python{,2,3}; do
-               # can't use symlinks here since random stuff
-               # loves to do readlink on sys.executable...
-               newbin python-exec2-c "${f}"
-       done
-       for f in python{,2,3}-config 2to3 idle pydoc pyvenv; do
-               dosym ../lib/python-exec/python-exec2 /usr/bin/"${f}"
+       for f in python{,2,3}{,-config} 2to3 idle pydoc pyvenv; do
+               dosym python-exec2 /usr/bin/"${f}"
        done
 }