Skip to content

Packages installed with setuptools with identical entry points are loaded incorrectly #3989

Answered by abravalheri
dgard1981 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Directory /home/user/pytest_plugins/pytest_plugin1_project_dir/src/pytest_plugin1.egg-info is created. Notice how it's under the src directory, unlike when installing locally.

This is a "cached build temporary artifact" generated by setuptools. It should not be very relevant and if you remove it the only thing it does is to clear the cache.

What could cause this difference in behaviour?

pip is a complicated (very useful) beast on its own... pip was supposed to always adopt the "isolated builds" behaviour (e.g. PEP 517 and PEP 660) by default after 23.1. However they are still holding it back to avoid breaking old distributions that have not adapted yet. They have a custom logic that…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@abravalheri
Comment options

@dgard1981
Comment options

@dgard1981
Comment options

@abravalheri
Comment options

Answer selected by dgard1981
@dgard1981
Comment options

@abravalheri
Comment options

@dgard1981
Comment options

@dgard1981
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants