mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-03 16:47:21 -08:00
dev-lang/python: Replace python3.x executables with symlinks
Replace python3.X executables (duplicate to python3.Xm) installed by the build system with symlinks to the ABIFLAGS-enabled variants.
This commit is contained in:
@@ -243,6 +243,14 @@ src_install() {
|
||||
# Fix collisions between different slots of Python.
|
||||
rm -f "${ED}usr/$(get_libdir)/libpython3.so"
|
||||
|
||||
# Cheap hack to get version with ABIFLAGS
|
||||
local abiver=$(cd "${ED}usr/include"; echo python*)
|
||||
# Replace python3.X with a symlink if appropriate
|
||||
if [[ ${abiver} != python${SLOT} ]]; then
|
||||
rm "${ED}usr/bin/python${SLOT}" || die
|
||||
dosym "${abiver}" "/usr/bin/python${SLOT}"
|
||||
fi
|
||||
|
||||
use elibc_uclibc && rm -fr "${libdir}/test"
|
||||
use sqlite || rm -fr "${libdir}/"{sqlite3,test/test_sqlite*}
|
||||
use tk || rm -fr "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,tkinter,test/test_tk*}
|
||||
|
||||
Reference in New Issue
Block a user