From 1b0008d709ad15f379bc093ddec015169ba237c6 Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Wed, 15 Jan 2020 14:24:03 +0530 Subject: [PATCH] fix: single process to pip install requirements, quiet flag added --- bench/app.py | 2 +- bench/utils.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bench/app.py b/bench/app.py index 5ff210b9..8b9ca2b0 100755 --- a/bench/app.py +++ b/bench/app.py @@ -118,7 +118,7 @@ def get_app(git_url, branch=None, bench_path='.', skip_assets=False, verbose=Fal shallow_clone = '--depth 1' if check_git_for_shallow_clone() else '' branch = '--branch {branch}'.format(branch=branch) if branch else '' - exec_cmd("git clone {git_url} {branch} {shallow_clone} --origin upstream".format( + exec_cmd("git clone -q {git_url} {branch} {shallow_clone} --origin upstream".format( git_url=git_url, shallow_clone=shallow_clone, branch=branch), diff --git a/bench/utils.py b/bench/utils.py index 4d2806f5..774363fd 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -204,9 +204,7 @@ def setup_env(bench_path='.', python = 'python3'): pip = os.path.join('env', 'bin', 'pip') exec_cmd('virtualenv -q {} -p {}'.format('env', python), cwd=bench_path) - exec_cmd('{} -q install --upgrade pip'.format(pip), cwd=bench_path) - exec_cmd('{} -q install wheel'.format(pip), cwd=bench_path) - exec_cmd('{} -q install six'.format(pip), cwd=bench_path) + exec_cmd('{} -q install -U pip wheel six'.format(pip), cwd=bench_path) exec_cmd('{} -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit'.format(pip), cwd=bench_path) def setup_socketio(bench_path='.'):