From 46d79166a315b70b2d911ed203d87b9e3d957aee Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Mon, 18 Aug 2025 22:35:37 +0200 Subject: [PATCH] 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 --- dotfiles/.zshrc | 1 + post-install.sh | 14 ++++++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index ed8b1ea..956a0f3 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -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' diff --git a/post-install.sh b/post-install.sh index b8c0230..8eb6a60 100755 --- a/post-install.sh +++ b/post-install.sh @@ -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..."