From ea106e89c9da84cc5ba118d5e1346580717f728b Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Tue, 26 Nov 2019 11:24:40 +0530 Subject: [PATCH] fix: dont install bench dependencies in env --- bench/utils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bench/utils.py b/bench/utils.py index 167127c7..341003e7 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -427,7 +427,12 @@ def set_default_site(site, bench_path='.'): def update_requirements(bench_path='.'): print('Updating Python libraries...') - pip = os.path.join(bench_path, 'env', 'bin', 'pip') + # pip = os.path.join(bench_path, 'env', 'bin', 'pip') + from six import PY2 + if PY2: + pip = which("pip") + else: + pip = which("pip3") exec_cmd("{pip} install --upgrade pip".format(pip=pip))