def run(): env() local_env() try: fab_run(SWADDLE, LOCAL_ENV, ASPEN, '--www_root=www' + os.sep, '--project_root=.', '--show_tracebacks=yes', '--changes_reload=yes', '--network_address=:8537') except KeyboardInterrupt: pass
def env(): if not shell('python', '--version').startswith('Python 2.7'): raise SystemExit('Error: Python 2.7 required') fab_run('python', './vendor/virtualenv-1.7.1.2.py', '--unzip-setuptools', '--prompt="[gittip] "', '--never-download', '--extra-search-dir=' + p('./vendor/'), '--distribute', p('./env/')) pip_install('-r', p('./requirements.txt')) pip_install(p('./vendor/nose-1.1.2.tar.gz')) pip_install('-e', p('./'))
def pip_install(*a): fab_run(PIP, 'install', *a)