Update python env template
This commit is contained in:
parent
cb6b8f9ef5
commit
c4341242ba
|
@ -210,8 +210,10 @@ envrc-file-mode
|
|||
"PYTHON=\"$(nix build " (p "nixpkgs#python3Full") " --print-out-paths --no-link)/bin/python3\"" n
|
||||
"VENV_DIR=" (p ".venv") n
|
||||
"export LD_LIBRARY_PATH=\"$CC/lib\":\"$ZLIB/lib\"" n
|
||||
"if [ ! -f $VENV_DIR/bin/python3 ]; then" n
|
||||
> "$PYTHON -m venv $VENV_DIR" n
|
||||
"if [ ! -f $VENV_DIR/bin/activate ]; then" n
|
||||
> "$PYTHON -m venv --clear $VENV_DIR" n
|
||||
"else" n
|
||||
> "$PYTHON -m venv --upgrade $VENV_DIR"
|
||||
"fi" n
|
||||
"source $VENV_DIR/bin/activate")
|
||||
|
||||
|
|
Loading…
Reference in a new issue