diff --git a/bench/app.py b/bench/app.py index a2869a6d..f5fecb8b 100755 --- a/bench/app.py +++ b/bench/app.py @@ -164,7 +164,7 @@ def install_app(app, bench_path='.', verbose=False, no_cache=False): logger.info('installing {}'.format(app)) # find_links = '--find-links={}'.format(conf.get('wheel_cache_dir')) if conf.get('wheel_cache_dir') else '' find_links = '' - exec_cmd("{pip} install {quiet} {find_links} -e {app} {no_cache}".format( + exec_cmd("{pip} install {quiet} {find_links} -U -e {app} {no_cache}".format( pip=os.path.join(bench_path, 'env', 'bin', 'pip'), quiet="-q" if not verbose else "", no_cache='--no-cache-dir' if no_cache else '', diff --git a/bench/utils.py b/bench/utils.py index cfa7a400..3ad94d9c 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -431,8 +431,6 @@ def update_requirements(bench_path='.'): exec_cmd("{pip} install --upgrade pip".format(pip=pip)) - apps_dir = os.path.join(bench_path, 'apps') - # Update bench requirements bench_req_file = os.path.join(os.path.dirname(bench.__path__[0]), 'requirements.txt') install_requirements(pip, bench_req_file) @@ -504,7 +502,7 @@ def update_npm_packages(bench_path='.'): def install_requirements(pip, req_file): if os.path.exists(req_file): - exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file)) + exec_cmd("{pip} install -q -U -r {req_file}".format(pip=pip, req_file=req_file)) def backup_site(site, bench_path='.'): bench.set_frappe_version(bench_path=bench_path)