I installed the file with the wheel in http://long.url.name.com/package-cp27-none-linux_x86_64.whl, and when I do pip install http://long.url.name.com/package-cp27-none-linux_x86_64.whl, it works fine. However, when I have a URL shortened above the specified URL and get something like http://short.url/XYZ, and try to do pip install http://short.url/XYZ, pip does not work. I noticed load activity, but I see the following error from pip:
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 18, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/pip-2LPqrK-build/setup.py'
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-2LPqrK-build
The problem is that the file name that sees pip for the file XYZ. This is true when I try to upload a file using wget, for example. However, when I got to the http://short.url/XYZfile, it really does download and save as package-cp27-none-linux_x86_64.whl. So how can I get pip to work with a shortened URL?
source
share