Skip to content

Commit

Permalink
python-setup: Fix pipenv (--keep-outdated deprecated)
Browse files Browse the repository at this point in the history
Recently released pipenv removed support for `--keep-outdated` flag (see https://github.com/pypa/pipenv/blob/main/CHANGELOG.rst#pipenv-202379-2023-07-09)

Local testing showed that installation was fine without this 👍
  • Loading branch information
Rasmus Wriedt Larsen committed Jul 12, 2023
1 parent 12aa0a6 commit d1a140b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-setup/auto_install_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def install_packages_with_pipenv(has_lockfile):
# In windows the default path were the deps are installed gets wiped out between steps,
# so we have to set it up to a folder that will be kept
os.environ['WORKON_HOME'] = os.path.join(os.environ['RUNNER_WORKSPACE'], 'virtualenvs')
lock_args = ['--keep-outdated', '--ignore-pipfile'] if has_lockfile else ['--skip-lock']
lock_args = ['--ignore-pipfile'] if has_lockfile else ['--skip-lock']
try:
_check_call(command + ['install'] + lock_args)
except subprocess.CalledProcessError:
Expand Down

0 comments on commit d1a140b

Please sign in to comment.