1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-22 15:21:30 +01:00

zsh: functions: mkvenv: replace venv with virtualenv

virtualenv is faster than venv and also installs wheel by default
This commit is contained in:
bretello 2022-06-21 23:05:34 +02:00
parent a3f74bf816
commit 5f4b4538bb
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -10,7 +10,7 @@ mkvenv(){
return 1
fi
echo -n "Creating venv..." && python -m venv $@ .venv
echo -n "Creating venv..." && python -m virtualenv $@ .venv || echo -e "Failed to create virtualenv. Is virtualenv installed? Try:\n $ pip install virtualenv"
if [[ -z ${source_venv} ]]; then
echo -n " done. Enable? [Y/n]"
read source_venv