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

Apply normcase to line from easy-install.pth #3451

Merged
merged 3 commits into from
May 8, 2024

Conversation

hauntsaninja
Copy link
Contributor

@hauntsaninja hauntsaninja commented May 8, 2024

Thanks for the suggestion from #3415 (comment)

Also it looks like you improved egg-link parsing in e23c91f so copying the changes over to the other parse site (happy to move this to a helper too, if so lmk where to put it)

let target_line = if cfg!(windows) {
// Do the equivalent of os.path.normcase
// This comes from `pkg_resources.normalize_path`
target_line.replace("\\", "/").to_lowercase()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the suggestion from astral-sh#3415 (comment)

Also it looks like you improved `egg-link` parsing in
astral-sh@e23c91f
so copying the changes over to the other parse site
@hauntsaninja
Copy link
Contributor Author

(draft to make sure tests fail on windows before I fix things)

@hauntsaninja hauntsaninja marked this pull request as ready for review May 8, 2024 06:38
Copy link
Member

@konstin konstin left a comment

Choose a reason for hiding this comment

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

Thanks

@konstin konstin merged commit 962fde2 into astral-sh:main May 8, 2024
43 checks passed
@hauntsaninja hauntsaninja deleted the norm-case branch May 8, 2024 09:40
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.

2 participants