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 forces re-installation of existing packets when used with --target option #2373

Closed
drasko opened this issue Jan 24, 2015 · 2 comments
Closed
Labels
auto-locked Outdated issues that have been locked by automation C: target pip install's --target option's behaviour handling type: enhancement Improvements to functionality

Comments

@drasko
Copy link

drasko commented Jan 24, 2015

Hi all,
I need to install some Python modules on external SD card, as I do not have space on my embedded device. That's why I use --target option of PIP.

However, it looks like --target implies --ignore-installed, so downloading and re-installation of already installed packages is performed.

In the case of embedded device this might be unacceptable - not only that this takes a lot of time and resources, but also packets on these devices are installed via special cross-compilation systems and should be mandatory kept in this state and version.

Example:

root@WEIO:/# pip freeze
PyYAML==3.8
futures==2.1.4
gevent==1.0
greenlet==0.4.0
pyserial==2.6
sockjs-tornado==1.0.0
tornado==3.0.1
wsgiref==0.1.2 

root@WEIO:/# pip install --target /weioUser/sd/pythonExtra --build /weioUser/sd/pythonExtra/build ouimeaux
Downloading/unpacking ouimeaux
  Downloading ouimeaux-0.7.3.tar.gz (506kB): 506kB downloaded
  Running setup.py egg_info for package ouimeaux

Downloading/unpacking gevent>=1.0 (from ouimeaux)
  Downloading gevent-1.0.1.tar.gz (1.5MB): 1.5MB downloaded
  Running setup.py egg_info for package gevent

Downloading/unpacking requests>=2.3.0 (from ouimeaux)
^CCleaning up...
Operation cancelled by user
Storing complete log in /root/.pip/pip.log
^C
root@WEIO:/# 

As you can see, although I have gevent==1.0 it is re-installed (unacceptable on OpenWrt where gevent is specially cross-compiled by OpenWrt build system). Package ouimeaux requirement is here: https://github.com/iancmcc/ouimeaux/blob/master/requirements.txt#L1, which shows that I already have a good version of gevent in my system.

BR,
Drasko

@piotr-dobrogost
Copy link

This is duplicate of #1818.

@xavfernandez xavfernandez added C: target pip install's --target option's behaviour handling type: enhancement Improvements to functionality labels Oct 20, 2015
@dstufft
Copy link
Member

dstufft commented Mar 24, 2017

Closing this it was a duplicate of #1818 which was fixed in pip 1.5.

@dstufft dstufft closed this as completed Mar 24, 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 C: target pip install's --target option's behaviour handling type: enhancement Improvements to functionality
Projects
None yet
Development

No branches or pull requests

4 participants