-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[FR] Automatically clean-up egg-info left in directory on isolated builds #3573
Comments
Hi @effigies, thank you very much for bringing this topic for discussion. I would classify this as a feature request instead of a bug. Would you like to work on a PR for that? |
Thanks for the response! I agree, I wasn't sure if this was intended, unintended or just legacy behavior. I think the fix would be adding a step to remove the removing 'sampleproject-2.0.0' (and everything under it) Should we also be deleting I would be up for working on a PR, but my time is pretty limited, so if someone else is motivated I don't want them to wait on me. |
The "final" solution would be fulfilling https://github.com/pypa/setuptools/milestone/3. But we can think about intermediate steps as the one you proposed. |
Chiming in to mention that it'd be nice if the |
Do I understand correctly that a series of PRs were opened that would close gh-1386 and possibly this issue as well? |
Hi @astrojuanlu, I don't think so. (Automatically removing the directory is also problematic because it can cause race conditions with The series of open PRs (still in progress) is only a step on this direction, but not the full solution. |
setuptools version
setuptools==65.3.0
Python version
Python 3.8.5
OS
Ubuntu 22.04
Additional environment information
Running using
python -m build
. This occurs with tags before and after moving topyproject.toml
.Description
Building with
python -m build
, a<package>.egg-info/
directory is left behind along with thedist/
after cleanup. This includes aSOURCES.txt
that will be reused during the next build, which can lead to unexpected behavior when modifyingMANIFEST.in
.Expected behavior
I would expect
egg-info/
directories to be removed during non-editable builds.How to Reproduce
Output
The text was updated successfully, but these errors were encountered: