@@ -131,12 +131,12 @@ egg filename is as follows::
131131
132132 name ["-" version ["-py" pyver ["-" required_platform]]] "." ext
133133
134- The "name" and "version" should be escaped using the `` to_filename() ``
135- function provided by `` pkg_resources ``, after first processing them with
136- ``safe_name () `` and `` safe_version() `` respectively. These latter two
137- functions can also be used to later "unescape" these parts of the
138- filename. (For a detailed description of these transformations, please
139- see the "Parsing Utilities" section of the ``pkg_resources `` manual.)
134+ The "name" and "version" should be escaped using `` pkg_resources `` functions
135+ `` safe_name() `` and `` safe_version() `` respectively then using
136+ ``to_filename () ``. Note that the escaping is irreversible and the original
137+ name can only be retrieved from the distribution metadata. For a detailed
138+ description of these transformations, please see the "Parsing Utilities"
139+ section of the ``pkg_resources `` manual.
140140
141141The "pyver" string is the Python major version, as found in the first
1421423 characters of ``sys.version ``. "required_platform" is essentially
@@ -193,6 +193,14 @@ Python version, or platform information is included. When the runtime
193193searches for available eggs, ``.egg-link `` files are opened and the
194194actual egg file/directory name is read from them.
195195
196+ Note: Due to `pypa/setuptools#4167
197+ <https://github.com/pypa/setuptools/issues/4167> `_, the name in the egg-link
198+ filename does not match the filename components used in similar files, but
199+ instead presents with dash separators instead of underscore separators. For
200+ compatibility with pip prior to version 24.0, these dash separators are
201+ retained. In a future release, pip 24 or later will be required and the
202+ underscore separators will be used.
203+
196204Each ``.egg-link `` file should contain a single file or directory name,
197205with no newlines. This filename should be the base location of one or
198206more eggs. That is, the name must either end in ``.egg ``, or else it
0 commit comments