Copy python-exec script to /usr/bin/python{,2,3} rather than symlinking
it because a lot of Python scripts like to readlink(sys.executable) and
don't expect to find python-exec in there...
emake DESTDIR="${D}" install || die
local f
- for f in python{,2,3}{,-config} 2to3 pydoc pyvenv; do
+ for f in python{,2,3}; do
+ # can't use symlinks here since random stuff
+ # loves to do readlink on sys.executable...
+ newbin "${EPREFIX}/usr/lib/python-exec/python-exec2" "${f}"
+ done
+ for f in python{,2,3}-config 2to3 pydoc pyvenv; do
dosym ../lib/python-exec/python-exec2 /usr/bin/"${f}"
done
}
emake DESTDIR="${D}" install || die
local f
- for f in python{,2,3}{,-config} 2to3 pydoc pyvenv; do
+ for f in python{,2,3}; do
+ # can't use symlinks here since random stuff
+ # loves to do readlink on sys.executable...
+ newbin "${EPREFIX}/usr/lib/python-exec/python-exec2" "${f}"
+ done
+ for f in python{,2,3}-config 2to3 pydoc pyvenv; do
dosym ../lib/python-exec/python-exec2 /usr/bin/"${f}"
done
}