Replies: 1 comment 3 replies
-
FYI: I noticed this when working on localstack/plux#26 which surfaced an issue after #4647. perhaps @pelson as author or @jaraco @abravalheri as reviewers know more? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I build a source distribution from my project, it will contain an
.egg-info
directory as part of the.tar.gz
. When I thenpip install ...
, pip creates a bunch of temporary directories, including the original source distribution, as well as temp folders to create the modern.dist-info
metadata. to do that, pip callsprepare_metadata_for_build_wheel
on the build backend, which in setuptools appears to be justsetup.py dist_utils
(and firstsetup.py egg_info
).Consequently, the
.egg-info
directory that was packaged with the source distribution, including entry_points.txt and other metadata, is completely ignored, since setuptools builds it in the temporary directory from scratch.Here's a screenshot from a debugging session of
pip install <source-distribution>
(where source-distribution is just a test library that i created locally), where I captured the pip build context after the wheel was created but before resources were cleaned up.Is this intentional? Why is the
.egg-info
packaged into a source distribution in the first place if it's not re-used?Beta Was this translation helpful? Give feedback.
All reactions