Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (36 sloc) 1.188 kb
from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
import os.path
import subprocess
import sys
def get_bash_path():
try:
return subprocess.check_output(['which', 'bash']).strip()
except subprocess.CalledProcessError:
sys.stderr.write('Bash not found, please install bash')
sys.exit(1)
def is_sysegg_in_buildout():
return (
'recipe= syseggrecipe' in
subprocess.check_output(['bin/buildout', 'annotate']))
def link():
result_file = 'buildout.cfg'
if not os.path.exists(result_file):
subprocess.call(['ln', '-sf', 'development.cfg', result_file])
def bootstrap():
result_file = 'bin/buildout'
if not os.path.exists(result_file):
subprocess.call(['python', 'bootstrap.py'])
def check_sysegg():
if is_sysegg_in_buildout():
subprocess.call(['bin/buildout', 'sysegg:force-sysegg=false',
'install', 'sysegg'])
def buildout():
bash = get_bash_path()
subprocess.call([bash, '-c', 'bin/buildout'])
def main():
"""Run all commands."""
link()
bootstrap()
check_sysegg()
buildout()
Jump to Line
Something went wrong with that request. Please try again.