I'm building/installing a package: foo
, using conda
, which has several dependencies: bar
and blatz
, which I'm also building/installing with conda
.
They all build without error.
When I conda install foo
, foo
and all its dependencies get installed correctly and I can run foo
just fine.
But, while all foo
's dependencies get equivalent ...dist-info
folders installed into site-packages/
, foo
does not!
And that makes it impossible to use the following trick for automatic version reporting:
(foo/__init__.py
):
from importlib.metadata import version
__version__ = version('foo')
Why does conda
omit the ...dist-info
folder for the main installation target, while including it for the dependencies?