2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

be quiet, fix #55

This commit is contained in:
Pratik Vyas 2014-10-01 00:15:09 +05:30
parent 6ec6016d2c
commit 3c30074078
2 changed files with 5 additions and 4 deletions

View File

@ -31,6 +31,7 @@ def get_app(app, git_url, branch=None, bench='.'):
shallow_clone=shallow_clone,
branch=branch),
cwd=os.path.join(bench, 'apps'))
print 'installing', app
install_app(app, bench=bench)
build_assets(bench=bench)
conf = get_config()
@ -46,7 +47,7 @@ def install_app(app, bench='.'):
logger.info('installing {}'.format(app))
conf = get_config()
find_links = '--find-links={}'.format(conf.get('wheel_cache_dir')) if conf.get('wheel_cache_dir') else ''
exec_cmd("{pip} install {find_links} -e {app}".format(
exec_cmd("{pip} install -q {find_links} -e {app}".format(
pip=os.path.join(bench, 'env', 'bin', 'pip'),
app=os.path.join(bench, 'apps', app),
find_links=find_links))

View File

@ -62,8 +62,8 @@ def exec_cmd(cmd, cwd='.'):
raise
def setup_env(bench='.'):
exec_cmd('virtualenv {} -p {}'.format('env', sys.executable), cwd=bench)
exec_cmd('./env/bin/pip install wheel', cwd=bench)
exec_cmd('virtualenv -q {} -p {}'.format('env', sys.executable), cwd=bench)
exec_cmd('./env/bin/pip -q install wheel', cwd=bench)
def setup_procfile(bench='.'):
with open(os.path.join(bench, 'Procfile'), 'w') as f:
@ -241,7 +241,7 @@ def update_requirements(bench='.'):
for app in os.listdir(apps_dir):
req_file = os.path.join(apps_dir, app, 'requirements.txt')
if os.path.exists(req_file):
exec_cmd("{pip} install -r {req_file}".format(pip=pip, req_file=req_file))
exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
def backup_site(site, bench='.'):
exec_cmd("{frappe} --backup {site}".format(frappe=get_frappe(bench=bench), site=site),