2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-08 16:14:12 +00:00

[fix] upgrade pip before installing requirements during update

This commit is contained in:
Anand Doshi 2015-12-08 18:51:02 +05:30
parent ec4a87ca67
commit 523e6b6837

View File

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