top | item 36311746

(no title)

fictorial | 2 years ago

I use a variation of this with direnv and asdf and it's fine, no problems.

    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.

discuss

order

No comments yet.