Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for local directory --index-url is inadequate #4549

Open
mhsmith opened this issue Jun 15, 2017 · 2 comments
Open

Documentation for local directory --index-url is inadequate #4549

mhsmith opened this issue Jun 15, 2017 · 2 comments
Labels
type: docs Documentation related

Comments

@mhsmith
Copy link

mhsmith commented Jun 15, 2017

The --index-url documentation says its parameter "should point to a repository compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format."

PEP 503 says that index directory URLs must "respond with a valid HTML5 page".

But what does it mean for a local directory to "respond with a valid HTML5 page"? #846 indicates that pip will look for an index.html file in the directory. But this is not documented anywhere.

@terrdavis
Copy link

Some other things that I learned via trial-and-error:

  • On windows, to point to a unc-path, only this format works: --index-url=file:///\server\share (I would expect --index-url=file:///\\server\share to work too...)
  • Also on windows, for a lettered drive, both of these work; I suspect the first is bug:
    • --index-url=file:/c:\dir1\dir2
    • --index-url=file:///c:\dir1\dir2

@mhsmith
Copy link
Author

mhsmith commented Jan 22, 2020

See also #5846.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: docs Documentation related
Projects
None yet
Development

No branches or pull requests

3 participants