mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 06:15:36 -04:00
Fix for oldest requirements
This commit is contained in:
parent
e15e848474
commit
f56bf422f2
1 changed files with 9 additions and 2 deletions
|
|
@ -99,8 +99,15 @@ def main(args):
|
|||
else:
|
||||
# Otherwise, we merge requirements to build the constraints and pin dependencies
|
||||
requirements = None
|
||||
reinstall = False
|
||||
if os.environ.get('CERTBOT_OLDEST') == '1':
|
||||
requirements = certbot_oldest_processing(tools_path, args, test_constraints)
|
||||
# We need to --force-reinstall the tested distribution during oldest requirements
|
||||
# because of an error in these tests in particular situations described in
|
||||
# https://github.com/certbot/certbot/issues/7014
|
||||
# However this slows down considerably the oldest tests (5 min -> 10 min),
|
||||
# so we need to find a better mitigation in the future.
|
||||
reinstall = True
|
||||
else:
|
||||
certbot_normal_processing(tools_path, test_constraints)
|
||||
|
||||
|
|
@ -109,8 +116,8 @@ def main(args):
|
|||
pip_install_with_print('--constraint "{0}" --requirement "{1}"'
|
||||
.format(all_constraints, requirements))
|
||||
|
||||
pip_install_with_print('--constraint "{0}" {1}'
|
||||
.format(all_constraints, ' '.join(args)))
|
||||
pip_install_with_print('--constraint "{0}" {1} {2}'.format(
|
||||
all_constraints, '--force-reinstall' if reinstall else '', ' '.join(args)))
|
||||
finally:
|
||||
if os.environ.get('TRAVIS'):
|
||||
print('travis_fold:end:install_certbot_deps')
|
||||
|
|
|
|||
Loading…
Reference in a new issue