New submission from Ben <onlinespend...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue46473>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to