From 4da2c9f3294e9f4653b51f71e08c4eec54743e91 Mon Sep 17 00:00:00 2001 From: Rim Date: Tue, 11 Mar 2025 05:34:53 -0400 Subject: [PATCH] chore: add linux configuration script --- configure.sh | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100755 configure.sh diff --git a/configure.sh b/configure.sh new file mode 100755 index 0000000..5e280b6 --- /dev/null +++ b/configure.sh @@ -0,0 +1,62 @@ +#!/bin/bash + +set -e + +echo "Updating package lists..." +sudo apt-get update -y + +echo "Installing build dependencies..." +sudo apt-get install -y \ + python3.9 \ + python3.9-dev \ + python3.9-venv \ + python3-pip \ + build-essential \ + libssl-dev \ + libffi-dev \ + zlib1g-dev \ + libbz2-dev \ + libreadline-dev \ + libsqlite3-dev \ + libgdbm-dev \ + libncurses5-dev \ + libncursesw5-dev \ + liblzma-dev \ + uuid-dev \ + tk-dev \ + libxml2-dev \ + libxmlsec1-dev \ + libmpdec-dev \ + wget \ + curl \ + llvm \ + xz-utils \ + patchelf \ + gcc \ + make \ + pkg-config + +# Ensure pip is up to date +echo "Upgrading pip..." +python3.9 -m ensurepip --upgrade +python3.9 -m pip install --upgrade pip + +# Add Python and pip to PATH (in case it's not already there) +echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc +source ~/.bashrc + +# Install essential Python build tools +echo "Installing Python build tools..." +python3.9 -m pip install wheel setuptools + +# Install PyInstaller +echo "Installing PyInstaller and other Python dependencies..." +python3.9 -m pip install pyinstaller + +# Verify installation +echo "Verifying installation..." +python3.9 --version +pip --version +pyinstaller --version + +echo "Setup complete!" \ No newline at end of file