mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 08:30:39 +00:00
fix: update pinned requirements
after pinning requirements, to avoid incompatible 2nd level dependencies of packages, pass the -U flag
This commit is contained in:
parent
9c854c1892
commit
025665a093
@ -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 '',
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user