Open jamesbraza opened 3 months ago
Hi @jamesbraza, I just to align expectations: I think it is unlikely the behaviour you requested is going to be implemented soon, unless a member of the community contributes with PRs and tests in a way that is backwards compatible.
The reason for that is because .egg-info
is one of the aspects of setuptools that I see as going away at some point, so for now the priority is to untangle egg_info
from the other parts of setuptools.
If I recall correctly, Setuptools' (current) design is to write out a manifest of files, based on MANIFEST.in
to SOURCES.txt
. Without that manifest, setuptools wouldn't know in the sdist which sources to include in the build (as it no longer has the git metadata or other context that would have come from the source repo). So it needs to store that somewhere.
As abravalheri points out, we could potentially revisit that approach, but for now it's not an easy "fix". It'll require revisiting the design, something that's almost certainly not worth doing until after removing reliance on .egg-info.
setuptools version
setuptools==71.1.0
Python version
3.12.4
OS
macOS Sonoma 14.5
Additional environment information
build==1.2.1
Description
I have a
MANIFEST.in
that looks like this:When I editably install, its
SOURCES.txt
looks like this, and it looks great:Next, when I run
python -m build --sdist
, I get the following output:Please note that it copies the
.egg-info/SOURCES.txt
. This is not supposed to happen, as I excluded it as part of theglobal-exclude
in myMANIFEST.in
.What is interesting is all other
.egg-info
files were not copied, justSOURCES.txt
was copied. This is why I think this is a bugExpected behavior
I expect the
.egg-info/SOURCES.txt
to be excluded as that was specified inMANIFEST.in
How to Reproduce
See above
Output
See above