Add Ninja to base

This commit is contained in:
MangoPig
2025-12-09 03:29:57 +00:00
parent 69f7a5d4d5
commit f359bb68eb
9 changed files with 20 additions and 89 deletions

View File

@@ -15,7 +15,7 @@ if [ -f /etc/os-release ]; then
OS=$ID
fi
# 1. Install Build Dependencies
# Install Build Dependencies
if [ "$OS" == "arch" ] || [ "$OS" == "manjaro" ]; then
echo -e "${BLUE} LOG:${YELLOW} Installing Arch build dependencies...${NC}"
sudo pacman -S --noconfirm --needed base-devel openssl zlib xz tk libffi bzip2 git
@@ -27,13 +27,13 @@ elif [ "$OS" == "ubuntu" ] || [ "$OS" == "debian" ]; then
libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev git
fi
# 2. Define the Black Box Location
# Define the Black Box Location
export PYENV_ROOT="$HOME/.programming/python/pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
echo -e "${BLUE} LOG:${YELLOW} Setting up Pyenv in ${PYENV_ROOT}...${NC}"
# 3. Install Pyenv
# Install Pyenv
if [ ! -d "$PYENV_ROOT" ]; then
echo -e "${BLUE} LOG:${YELLOW} Cloning Pyenv...${NC}"
git clone https://github.com/pyenv/pyenv.git "$PYENV_ROOT"
@@ -49,7 +49,7 @@ fi
# Initialize Pyenv for this script session
eval "$(pyenv init -)"
# 4. Install Miniforge (The Community Standard)
# Install Miniforge (The Community Standard)
TARGET_VER="miniforge3-latest"
if ! pyenv versions | grep -q "$TARGET_VER"; then
@@ -63,7 +63,7 @@ else
echo -e "${GREEN} SKIP:${NC} Miniforge already installed."
fi
# 5. Set Global Default
# Set Global Default
pyenv global "$TARGET_VER"
echo -e "${GREEN} SUCCESS:${NC} Python setup completed. Default is now Miniforge (Conda)."