From 17b37db990f8cfa0288522a563869a470cde5edf Mon Sep 17 00:00:00 2001 From: Joe Caulfield Date: Tue, 5 Nov 2024 09:08:44 +0000 Subject: [PATCH] add ubuntu lite install script --- install_ubuntu.sh | 2 +- install_ubuntu_lite.sh | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100755 install_ubuntu_lite.sh diff --git a/install_ubuntu.sh b/install_ubuntu.sh index e5ce29c..f412f5f 100755 --- a/install_ubuntu.sh +++ b/install_ubuntu.sh @@ -17,7 +17,7 @@ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 20 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 20 # Configure Python virtual environment. -sudo apt install -y python3.11 python3.11-dev +sudo apt install -y python3.11 python3.11-dev python3.11-venv python3.11 -m venv test_suite_env source test_suite_env/bin/activate diff --git a/install_ubuntu_lite.sh b/install_ubuntu_lite.sh new file mode 100755 index 0000000..715a973 --- /dev/null +++ b/install_ubuntu_lite.sh @@ -0,0 +1,18 @@ +# Install the toolkit on Ubuntu without cloning targets. + +# Configure GCC. +sudo apt install -y build-essential software-properties-common +sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test +sudo apt update +sudo apt install -y gcc-12 g++-12 +sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 20 +sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 20 + +# Configure Python virtual environment. +sudo apt install -y python3.11 python3.11-dev python3.11-venv +python3.11 -m venv test_suite_env +source test_suite_env/bin/activate + +# Bootstrap environment. +pip install -e ".[dev]" +pre-commit install