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

Close RECORD after reading entries during uninstall #2259

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Mar 7, 2024

Summary

It turns out that by keeping the RECORD file open, older versions of Windows mark it for deletion, but don't allow it to be deleted until it's closed. As such, we end up leaving the .dist-info directory around, since it appears non-empty; but once the program terminates, we do delete RECORD, leaving it empty. This then creates the impression that a package exists where it does not.

Closes #2074.

@zanieb
Copy link
Member

zanieb commented Mar 7, 2024

#1830 fyi I tried this previously

@charliermarsh
Copy link
Member Author

Thanks, this is specifically to reproduce a bug that only occurs on older Windows versions.

@charliermarsh charliermarsh force-pushed the charlie/install branch 4 times, most recently from fee6951 to 16162f9 Compare March 7, 2024 04:30
@charliermarsh charliermarsh changed the title Run tests on Windows 2019 Close RECORD after reading entries during uninstall Mar 7, 2024
@charliermarsh charliermarsh added the bug Something isn't working label Mar 7, 2024
@charliermarsh charliermarsh marked this pull request as ready for review March 7, 2024 04:31
@charliermarsh charliermarsh enabled auto-merge (squash) March 7, 2024 04:32
@charliermarsh charliermarsh merged commit 59f4639 into main Mar 7, 2024
7 checks passed
@charliermarsh charliermarsh deleted the charlie/install branch March 7, 2024 04:35
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.

Editable package install fails after a previous uninstall
2 participants