@@ -131,12 +131,12 @@ egg filename is as follows::
131
131
132
132
name ["-" version ["-py" pyver ["-" required_platform]]] "." ext
133
133
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.
140
140
141
141
The "pyver" string is the Python major version, as found in the first
142
142
3 characters of ``sys.version ``. "required_platform" is essentially
@@ -193,6 +193,14 @@ Python version, or platform information is included. When the runtime
193
193
searches for available eggs, ``.egg-link `` files are opened and the
194
194
actual egg file/directory name is read from them.
195
195
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
+
196
204
Each ``.egg-link `` file should contain a single file or directory name,
197
205
with no newlines. This filename should be the base location of one or
198
206
more eggs. That is, the name must either end in ``.egg ``, or else it
0 commit comments