@@ -136,7 +136,7 @@ except for ``*.pyc`` and ``RECORD`` itself.
136
136
(Note that PEP 376 is unclear on what was optional; when taken literally,
137
137
its text and examples contradict. Despite that, “both fields are optional“ is a
138
138
reasonable interpretation of PEP 376.
139
- The alternative would be to mandate—rather rhan recommend—which files can be
139
+ The alternative would be to mandate—rather than recommend—which files can be
140
140
recorded without hash and size, and to update that list over time as new use
141
141
cases come up.)
142
142
@@ -204,21 +204,21 @@ any ASCII string in ``INSTALLER``, rather than a lowercase identifier.
204
204
It also suggests using the command-line command, if available.
205
205
206
206
207
- The ``REQUESTED `` File
208
- ----------------------
207
+ The ``REQUESTED `` File: Removed from Spec
208
+ -----------------------------------------
209
209
210
- The ``REQUESTED `` file is kept in the specification, with only tool-specific
211
- notes removed.
210
+ The ``REQUESTED `` file is now considered a tool-specific extension.
212
211
213
- It is made clear that while ``REQUESTED `` is optional, tools must handle it:
214
- it can only be omitted only if it is known that a user did not request
215
- installation directly.
212
+ Per :pep: `376 `, ``REQUESTED `` was to be written when a project was installed
213
+ by direct user request, as opposed to automatically to satisfy dependencies
214
+ of another project. Projects without this marker file could be uninstalled
215
+ when no longer needed.
216
216
217
- Note that tools that do not create this file effectively mark all installed
218
- projects as “removable unless needed by another project”.
219
- This was was the case with `` pip `` before version 20.2.
220
- Before ``REQUESTED `` becomes commonplace, automatically uninstalling “orphaned”
221
- projects should be done with care .
217
+ Despite the standard, many existing installers (including older versions of
218
+ `` pip ``) never write this file. There is no distinction between projects
219
+ that are “OK to remove when no longer needed” and ones simply installed by
220
+ a tool that ignores ``REQUESTED ``. So, the file is currently not usable for its
221
+ intended purpose (unless a tool can use additional, non-standard information) .
222
222
223
223
224
224
Clarifications
@@ -236,8 +236,9 @@ future PEPs:
236
236
237
237
* Encoding of the ``RECORD `` file
238
238
* Limiting or namespacing files that can appear in ``.dist-info ``
239
- * Marking the difference between projects installed by a tool that does not
240
- support the ``REQUESTED `` file and projects installed as dependencies
239
+ * Marking the difference between projects installed directly by user request
240
+ versus those installed to satisfy dependencies, so that the latter can be
241
+ removed when no longer needed.
241
242
242
243
243
244
Copyright
0 commit comments