Use system libs when creating the venv
This commit is contained in:
parent
3bc4f991cf
commit
a0b48838d2
2
.bashrc
2
.bashrc
|
@ -212,7 +212,7 @@ vactivate() {
|
||||||
local path=~/.venv/$1
|
local path=~/.venv/$1
|
||||||
|
|
||||||
if [[ ! -d $path ]]; then
|
if [[ ! -d $path ]]; then
|
||||||
python -m venv $path --prompt "venv: $1"
|
python -m venv --prompt "venv: $1" --system-site-packages $path
|
||||||
fi
|
fi
|
||||||
source $path/bin/activate; bash; deactivate
|
source $path/bin/activate; bash; deactivate
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue