#!/usr/bin/env bash # Install python/pip packages. # # shellcheck source=shared.sh echo "This file has been deprecated in favor of asdf. Please use asdf instead." exit 0 source "${DOTFILES}/config/shared.sh" # Enable verbosity with VERBOSE=1 VERBOSE="${VERBOSE:-0}" msg "Starting to install pip packages" if ! command -v python3 &> /dev/null; then msg_err "Could not find python3, something really weird is going on." exit 1 fi msg_nested "Upgrading pip" python3 -m pip install --user --upgrade pip packages=( "pipx" "libtmux" ) # Function to install pip packages install_packages() { for pkg in "${packages[@]}"; do # Trim spaces pkg=${pkg// /} # Skip comments if [[ ${pkg:0:1} == "#" ]]; then continue; fi msg_nested "Installing pip package: $pkg" python3 -m pip install --user --upgrade "$pkg" echo "" done } install_packages msg_yay "Run pip package installations"