I have a Python app that looks for plugins via pkg_resources.iter_entry_points
.
When run directly from source checkout, this will find anything in sys.path
that fits the bill, including source checkouts that happen to have an applicable .egg-info
for setuptools
to find.
Yet when I install the package anywhere via python setup.py install
, it suddenly ceases to detect everything enumerated in sys.path
, instead only finding things that are installed alongside it in site-packages
.
- Why is
pkg_resources.iter_entry_points
behaving differently for the vanilla source checkout v. the installed application? - How can I make it traverse everything in
sys.path
, as it does in development?