2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 08:30:39 +00:00

fix: dont install bench dependencies in env

This commit is contained in:
Gavin D'souza 2019-11-26 11:24:40 +05:30
parent 1d7e3ca383
commit ea106e89c9

View File

@ -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))