From 523e6b683776306aab618eedd677096455ea3c76 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 8 Dec 2015 18:51:02 +0530 Subject: [PATCH] [fix] upgrade pip before installing requirements during update --- bench/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bench/utils.py b/bench/utils.py index a837df96..11053d3c 100644 --- a/bench/utils.py +++ b/bench/utils.py @@ -347,6 +347,10 @@ def set_default_site(site, bench='.'): def update_requirements(bench='.'): pip = os.path.join(bench, 'env', 'bin', 'pip') + + # upgrade pip to latest + exec_cmd("{pip} install --upgrade pip".format(pip=pip)) + apps_dir = os.path.join(bench, 'apps') for app in os.listdir(apps_dir): req_file = os.path.join(apps_dir, app, 'requirements.txt')