From bff98d35a7211d901081d5dbaaa35bc4e95ebf4f Mon Sep 17 00:00:00 2001 From: schoeffelbe82781 Date: Wed, 26 Mar 2025 22:25:08 +0100 Subject: [PATCH] Added python venv configuration and froze pip-packages of working setup --- activateEnv.srcme | 24 ++++++++++++++++++++++++ myreqs.txt | 13 +++++++++++++ 2 files changed, 37 insertions(+) create mode 100755 activateEnv.srcme create mode 100644 myreqs.txt diff --git a/activateEnv.srcme b/activateEnv.srcme new file mode 100755 index 0000000..dcc96c1 --- /dev/null +++ b/activateEnv.srcme @@ -0,0 +1,24 @@ +#!/bin/bash -u + +# +# Source python venv (installed via curl https://pyenv.run | bash) to use specific python-version for this project without affecting system +# For Algorithms and Datastructures Class +# +# For WSLg support for matplotlib export="DISPLAY:0" and +# echo "backend: TkAgg" > ~/.config/matplotlib/matplotlibrc + +export PYENV_ROOT="$HOME/.pyenv" +export PATH="$PYENV_ROOT/bin:$PATH" +export PYTHONPATH=".:$PYTHONPATH" +eval "$(pyenv init --path)" +eval "$(pyenv init -)" +eval "$(pyenv virtualenv-init -)" + +# Create virtualenv if it doesn't exist +if ! pyenv versions | grep -q AUD; then + echo "Creating Python environment..." + pyenv install -s 3.12.0 + pyenv virtualenv 3.12.0 AUD +fi + +pyenv activate AUD diff --git a/myreqs.txt b/myreqs.txt new file mode 100644 index 0000000..3fcfbad --- /dev/null +++ b/myreqs.txt @@ -0,0 +1,13 @@ +contourpy==1.3.1 +cycler==0.12.1 +fonttools==4.56.0 +kiwisolver==1.4.8 +matplotlib==3.10.1 +numpy==2.2.4 +packaging==24.2 +pillow==11.1.0 +pygame==2.6.1 +pyparsing==3.2.3 +python-dateutil==2.9.0.post0 +six==1.17.0 +tk==0.1.0