Fix Python 3.13 pip and improve user installations

- Add python3.13-pip package for pip support
- Move Claude Code and bpytop to user-only installations
- Add pip alias to use Python 3.13
- Add empty line to MOTD for better spacing
This commit is contained in:
Dominik Moritz Roth 2025-08-18 22:35:37 +02:00
parent 3f27ac8960
commit 46d79166a3
2 changed files with 7 additions and 8 deletions

View File

@ -25,6 +25,7 @@ fi
# lang
alias python='python3.13'
alias pip='python -m pip'
alias ptpython="python -m ptpython"
alias ptpy="python -m ptpython"
alias py13='python3.13'

View File

@ -154,6 +154,7 @@ done
if [ "$ENABLE_MOTD" = true ]; then
echo "[+] Setting up MOTD..."
cat > /etc/motd << MOTD
$BANNER
MOTD
fi
@ -162,7 +163,7 @@ fi
echo "[+] Installing additional packages..."
dnf install -y \
clevis clevis-luks tpm2-tools tpm2-tss \
tmux neovim python3-pip python3.13 \
tmux neovim python3-pip python3.13 python3.13-pip \
tree gcc make autoconf automake tar bzip2 \
bash-completion || exit 1
@ -177,13 +178,10 @@ echo "[+] Installing lsd, bat, and fastfetch..."
# Try to install fastfetch from repos first
dnf install -y fastfetch || echo "fastfetch not available in repos, skipping"
# Install Claude Code via official installer
echo " - Installing Claude Code..."
curl -fsSL https://claude.ai/install.sh | bash || echo "WARNING: Claude Code installation failed"
# Install bpytop via Python 3.13
echo " - Installing bpytop..."
python3.13 -m pip install bpytop || echo "WARNING: bpytop installation failed"
# Install user-specific tools for the user account
echo "[+] Installing user-specific tools for ${ALMA_USER}..."
su - ${ALMA_USER} -c 'curl -fsSL https://claude.ai/install.sh | bash' || echo "WARNING: Claude Code installation failed"
su - ${ALMA_USER} -c 'python3.13 -m pip install --user bpytop' || echo "WARNING: bpytop installation failed"
# Install Docker from official repository
echo "[+] Installing Docker..."