dev-lang/python-exec-9999: Use Python wrapper for Python scripts

This commit is contained in:
Michał Górny
2016-02-16 23:56:46 +01:00
parent 44849504e7
commit 0e88751404
+8 -2
View File
@@ -68,11 +68,17 @@ src_install() {
insinto /etc/python-exec
doins "${T}"/python-exec.conf
# Create Python interpreter executable wrappers
local f
for f in python{,2,3}{,-config} 2to3 idle pydoc pyvenv; do
for f in python{,2,3}; do
# symlink the C wrapper for python to avoid shebang recursion
# bug #568974
dosym python-exec2c /usr/bin/"${f}"
done
for f in python{,2,3}-config 2to3 idle pydoc pyvenv; do
# those are python scripts (except for new python-configs)
# so symlink them via the python wrapper
dosym ../lib/python-exec/python-exec2 /usr/bin/"${f}"
done
}
pkg_preinst() {