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 -d folderA' with 'PIP_FIND_LINKS=file://folderB' unpacks content to the wrong folder #648

Closed
alexandrul opened this issue Aug 20, 2012 · 1 comment
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@alexandrul
Copy link

If PIP_FIND_LINKS point to a web page then everything is ok.

However, if PIP_FIND_LINKS point to a local folder then:

  • the source archive is found in folderB
  • it is unpacked in folderA
  • the unpacked content is expected to be found in the temp folder internally created for this pip command invocation
  • failure :D

Specifying a custom build location doesn't make any change.

I'm using pip 1.1.post2 at revision 1749343.

d:\pypi>cache -v genshi
Ignoring indexes: http://pypi.python.org/simple/
Downloading/unpacking genshi
  Local files found: d:/pypi/_req/Genshi-0.6.tar.gz
  Running setup.py egg_info for package genshi
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
    IOError: [Errno 2] No such file or directory: 'c:\\users\\xyz\\appdata\\local\\temp\\pip-build\\genshi\\setup.py'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

IOError: [Errno 2] No such file or directory: 'c:\\users\\xyz\\appdata\\local\\temp\\pip-build\\genshi\\setup.py'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in c:\users\xyz\appdata\local\temp\pip-build\genshi
Exception information:
Traceback (most recent call last):
  File "d:\pypi\python\lib\site-packages\pip-1.1.post2-py2.7.egg\pip\basecommand.py", line 105, in main
    status = self.run(options, args)
  File "d:\pypi\python\lib\site-packages\pip-1.1.post2-py2.7.egg\pip\commands\install.py", line 256, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "d:\pypi\python\lib\site-packages\pip-1.1.post2-py2.7.egg\pip\req.py", line 1043, in prepare_files
    req_to_install.run_egg_info()
  File "d:\pypi\python\lib\site-packages\pip-1.1.post2-py2.7.egg\pip\req.py", line 235, in run_egg_info
    command_desc='python setup.py egg_info')
  File "d:\pypi\python\lib\site-packages\pip-1.1.post2-py2.7.egg\pip\util.py", line 605, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in c:\users\xyz\appdata\local\temp\pip-build\genshi

Storing complete log in K:\home\pip\pip.log
@xavfernandez
Copy link
Member

Looks like it is fixed in pip 7.1.2:

$ pwd
/home/xfernandez/tmp/test_empty
$ ls
$ ls ../test
Django-1.8.5-py2.py3-none-any.whl
$ PIP_FIND_LINKS=/home/xfernandez/tmp/test/ pip install --no-index -d . django
Ignoring indexes: http://localhost:3141/root/pypi/+simple
Collecting django
  Saved ./Django-1.8.5-py2.py3-none-any.whl
Successfully downloaded django
$ ls
Django-1.8.5-py2.py3-none-any.whl

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 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
Projects
None yet
Development

No branches or pull requests

2 participants