Reading the pip
documentation, it is not clear to me what is the difference between specifying a --find-links
URL or an --index-url/--extra-index-url
for extra packages.
-i, --index-url <url>
Base URL of Python Package Index (default https://pypi.python.org/simple). This should point to a repository compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format.
-f, --find-links <url>
If a url or path to an html file, then parse for links to archives. If a local path or file:// url that's a directory, then look for archives in the directory listing.
As far as I understand, there is no real difference between the two, apart from the fact that index URLs must follow PEP 503. I guess the usual logic of choosing the latest version among all the available ones is followed.
Are there any other conceptual differences between the two that I missed? If so, which ones? If not, why having both?