Added python venv configuration and froze pip-packages of working setup
This commit is contained in:
parent
882310a859
commit
bff98d35a7
24
activateEnv.srcme
Executable file
24
activateEnv.srcme
Executable file
@ -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
|
13
myreqs.txt
Normal file
13
myreqs.txt
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user