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

pip install with --index-url=<local drive> ignores path containing dots #4115

Closed
jrast opened this issue Nov 15, 2016 · 1 comment
Closed
Labels
auto-locked Outdated issues that have been locked by automation type: support User Support

Comments

@jrast
Copy link

jrast commented Nov 15, 2016

  • Pip version: 8.1.2 and 9.0.1
  • Python version: CPython 2.7.12 32bit
  • Operating System: Windows 7 64bit

Description:

I tried to install the backports.functools-lru-cache package which is simple index located on my drive (created with pip2pi). The actual package is in the folder D:\temp\pip2pi\simple\backports.functools-lru-cache and named backports.functools-lru-cache-1.3-py2.py3-none-any.whl. However, it seems pip replaces the dot in the path with a dash - and therefore is not able to find the package.

What I've run:

pip install --index-url="file:///d:/temp/pip2pi/simple" backports.functool-lru-cache

Collecting backports.functools-lru-cache
  Url 'file:///d:/temp/pip2pi/simple/backports-functools-lru-cache/' is ignored: it is neither a file nor a directory.
  Could not find a version that satisfies the requirement backports.functools-lru-cache (from versions: )
No matching distribution found for backports.functools-lru-cache
@dstufft
Copy link
Member

dstufft commented Mar 30, 2017

This is expected behavior and it stems from pip2pi not correctly implementing PEP 503.

@dstufft dstufft closed this as completed Mar 30, 2017
@xavfernandez xavfernandez added the type: support User Support label Mar 30, 2017
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation type: support User Support
Projects
None yet
Development

No branches or pull requests

3 participants