Skip to content
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

Skip Python 2 versions when locating Python #3476

Merged
merged 1 commit into from
May 9, 2024
Merged

Conversation

charliermarsh
Copy link
Member

Summary

Unfortunately, the -I flag was added in Python 3.4. So if we query a Python version prior to 3.4 (e.g., Python 2.7), we can't run our script at all, and lose the ability to match against our structured error.

This PR adds an additional check against the stderr output for these cases.

Closes #3474.

Test Plan

Installed Python 2.7, and verified that it was skipped (and that we instead found my python3).

@charliermarsh charliermarsh added the bug Something isn't working label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error running uv pip compile with --python-version specified when Python 2 is on the PATH
2 participants