Skip to content

Conversation

@esafak
Copy link
Contributor

@esafak esafak commented Jul 16, 2025

When providing multiple -p options to virtualenv, the creation would fail if a missing absolute path was encountered before a valid one. This change ensures that missing absolute paths are ignored, just like relative paths, allowing the discovery process to continue and find a valid Python interpreter.

Fixes #2870

Thanks for contributing, make sure you address all the checklists (for details on how see development documentation)

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation

google-labs-jules bot and others added 2 commits July 16, 2025 13:57
When providing multiple `-p` options to `virtualenv`, the creation would fail if a missing absolute path was encountered before a valid one. This change ensures that missing absolute paths are ignored, just like relative paths, allowing the discovery process to continue and find a valid Python interpreter.

Fixes pypa#2870
@gaborbernat gaborbernat merged commit 269599a into pypa:main Jul 21, 2025
42 checks passed
@esafak esafak deleted the fix/ignore-missing-absolute-paths branch July 31, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interpreter lookup fails when first -p value is absolute and missing

2 participants