Init pyenv after install
This commit is contained in:
parent
417e517cc5
commit
d3977da170
|
@ -17,6 +17,9 @@ namespace :pyenv do
|
||||||
"yyuu/pyenv-virtualenv",
|
"yyuu/pyenv-virtualenv",
|
||||||
"yyuu/pyenv-which-ext"
|
"yyuu/pyenv-which-ext"
|
||||||
].each { |pkg| github pkg, "#{PYENV_ROOT}/plugins/" }
|
].each { |pkg| github pkg, "#{PYENV_ROOT}/plugins/" }
|
||||||
|
|
||||||
|
sh_safe "eval $(~/.pyenv/bin/pyenv init -)"
|
||||||
|
sh_safe "eval $(~/.pyenv/bin/pyenv virtualenv-init -)"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -37,11 +40,9 @@ namespace :pyenv do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if pyenv_installed?
|
||||||
desc "Remove pyenv & installed pythons"
|
desc "Remove pyenv & installed pythons"
|
||||||
task :remove do
|
task :remove do
|
||||||
if pyenv_installed?
|
|
||||||
echo "pyenv isn't installed!"
|
|
||||||
else
|
|
||||||
echo "Deleting pyenv"
|
echo "Deleting pyenv"
|
||||||
sh_safe "rm -rf #{PYENV_ROOT}"
|
sh_safe "rm -rf #{PYENV_ROOT}"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue