by computerfriend · 3y ago · 0 comments
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
has never let me down and doesn't abstract away anything.Python packaging is such a ridiculous PITA, it's laughable if it wasn't so sad. I tried nuitka as suggested upthread, and send my customer a single binary to try, let's see if it works.
(This is in academia btw)
asdf install python 3.11.0
asdf local python 3.11.0 # .tool-versions
python -m venv .venv
echo >.envrc <<EOF
export VIRTUAL_ENV=.venv
export PATH=.venv/bin:$PATH
EOF
direnv allow .
Now I just `cd` to project directories and I'm good to go.Oh you sweet summer child. You are like those people who want to discover why make backups the hard way.