[New-bugs-announce] [issue46473] importlib.metadata does not honor .egg-link files

Ben report at bugs.python.org
Sat Jan 22 10:51:35 EST 2022


New submission from Ben <onlinespending at gmail.com>:

When installing a package using --editable, pip creates a .egg-link file in your site-packages dir that points to the .egg-info metadata that by default exists along side the source that it was installed from. This worked just fine with the older pkg_resources package. However, the newer importlib.metadata does not seem to be aware of .egg-link files at all. The only solution is to include the source dir that contains the .egg-info metadata into your PYTHONPATH, which sort of defeats the purpose of having the .egg-link pointer in the first place.

----------
components: Distutils, Library (Lib)
messages: 411262
nosy: dstufft, eric.araujo, onlinespending
priority: normal
severity: normal
status: open
title: importlib.metadata does not honor .egg-link files
type: behavior
versions: Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46473>
_______________________________________


More information about the New-bugs-announce mailing list