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

Expand Windows shim detection to include python3.12.exe #2209

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

charliermarsh
Copy link
Member

Summary

Our Windows shim detection wasn't catching shims like python3.12.exe.

Closes #2208.

Test Plan

Installed Python 3.12 via the Windows Store; verified that cargo run venv --python 3.12 failed before but passes after this change.

@charliermarsh charliermarsh added bug Something isn't working windows Specific to the Windows platform labels Mar 5, 2024
@charliermarsh charliermarsh marked this pull request as ready for review March 5, 2024 17:53
///
/// Matches against paths like:
/// `C:\Users\crmar\AppData\Local\Microsoft\WindowsApps\python.exe`
pub(super) fn is_windows_store_shim(path: &Path) -> bool {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I structured this to look similar to is_windows_store_python.

@charliermarsh charliermarsh force-pushed the charlie/win branch 2 times, most recently from e4c2652 to a64c94a Compare March 5, 2024 18:00
@charliermarsh charliermarsh merged commit cf94df7 into main Mar 5, 2024
7 checks passed
@charliermarsh charliermarsh deleted the charlie/win branch March 5, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Specific to the Windows platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignore Windows shims for (e.g.) python3.12.exe
1 participant