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

Use default encoding when creating .pth files in editable_wheel #4009

Merged
merged 3 commits into from Aug 15, 2023

Conversation

abravalheri
Copy link
Contributor

@abravalheri abravalheri commented Aug 9, 2023

Summary of changes

This is an attempt to follow the suggestions in python/cpython#77102 about how to handle .pth files.

The difference is that instead of using a open(path, 'w'), I emulated it with io.TextIOWrapper (to do the operation in memory instead of writing in the file system).

Closes #3937

Pull Request Checklist

@abravalheri abravalheri marked this pull request as ready for review August 9, 2023 16:47
@abravalheri abravalheri merged commit db4036a into pypa:main Aug 15, 2023
22 checks passed
@abravalheri abravalheri deleted the issue-3937 branch August 15, 2023 16:31
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.

[BUG] pip install -e . on Windows creates broken .pth files
1 participant