From 1bb31bb390c1e203912a21405ae9be8c7a62742b Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Tue, 9 Nov 2021 11:11:41 -0800 Subject: [PATCH] PEP 665: specify that `url` can support any scheme the installer chooses --- pep-0665.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pep-0665.rst b/pep-0665.rst index 1e67f6ebb..a506ca23e 100644 --- a/pep-0665.rst +++ b/pep-0665.rst @@ -390,12 +390,13 @@ All of this is to help minimize diff changes between tool executions. A string representing a URL where to get the file. -An installer MAY choose to not use a URL to retrieve a file +The installer MAY support any schemes it wants for URLs +(e.g. ``file:`` as well as ``https:``). + +An installer MAY choose to not use the URL to retrieve a file if a file matching the specified hash can be found using some alternative means (e.g. on the file system in a cache directory). -The URL MAY specify a local file by using ``file:`` URLs. - ``package._name_._version_.filename`` -------------------------------------