Move fix-pip to __init__.py from osx.py

This commit is contained in:
Ivan Malison 2015-01-12 14:15:56 -08:00
parent 92c51e8406
commit d245accc55
2 changed files with 5 additions and 10 deletions

View File

@ -22,7 +22,7 @@ def setup(ctx):
osx.setup(ctx)
else:
linux.setup(ctx)
fix_pip_download_cache(ctx)
fix_pip(ctx)
python(ctx)
powerline(ctx)
install_npm_libraries(ctx)
@ -115,11 +115,12 @@ def customize_user_settings(ctx):
@ctask
def fix_pip_download_cache(ctx):
ctx.run("sudo chown imalison ~/.pip/download_cache -R")
def fix_pip(ctx):
ctx.run("sudo easy_install -U pip")
ctx.run("sudo chown $(whoami) ~/.pip/download_cache -R")
ns.add_task(fix_pip_download_cache)
ns.add_task(fix_pip)
ns.add_task(change_shell)
ns.add_task(customize_user_settings)
ns.add_task(dotfiles)

View File

@ -15,7 +15,6 @@ def setup(ctx):
set_path_for_launchd(ctx)
rvm(ctx)
fonts(ctx)
fix_pip(ctx)
fix_htop(ctx)
setup_dbus(ctx)
@ -158,11 +157,6 @@ def iTerm(ctx):
))
@ctask
def fix_pip(ctx):
ctx.run("sudo easy_install -U pip")
@ctask
def launch_agents(ctx, flags=''):
ctx.run('dotfiles -sn{1} -R {0}/resources/LaunchAgents/ '