Skip to content

Fix: Ignore missing absolute paths for python discovery #2907

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 21, 2025

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
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