Remove the python3-lib alternative

This commit is contained in:
tcely 2025-06-03 09:56:15 -04:00 committed by GitHub
parent 133d65a6c9
commit 3fc2b09a26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -363,8 +363,7 @@ RUN --mount=type=cache,id=apt-lib-cache-${TARGETARCH},sharing=private,target=/va
xxd \
&& \
# Link to the current python3 version
update-alternatives --install /usr/local/lib/python3 python3-lib \
"$(find /usr/local/lib -name 'python3.[0-9]*' -type d -printf '%P\n' | sort -r -V | head -n 1)" 100 && \
ln -v -s -f -T "$(find /usr/local/lib -name 'python3.[0-9]*' -type d -printf '%P\n' | sort -r -V | head -n 1)" /usr/local/lib/python3 && \
# Configure the editor alternatives
touch /usr/local/bin/babi /bin/nano /usr/bin/vim.tiny && \
update-alternatives --install /usr/bin/editor editor /usr/local/bin/babi 50 && \