Skip to content

Commit

Permalink
Merge pull request #1772 from github/RasmusWL/fix-pipenv
Browse files Browse the repository at this point in the history
python-setup: Fix pipenv (`--keep-outdated` deprecated)
  • Loading branch information
Rasmus Wriedt Larsen authored and GitHub committed Jul 13, 2023
2 parents 12aa0a6 + d1a140b commit 7d35788
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 7d35788

Please sign in to comment.