-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Using --root
option checks existing installation in global site-packages (instead of given dir)
#3029
Comments
--root
option checks global site-packages instead of given dir--root
option checks existing installation in global site-packages (instead of given dir)
I can confirm this behaviour. That said, I traced how we use |
i tried to do if i had, pip would have fucked up my package-manager-controlled global install. is this the same bug? i can circumvent it by doing what it does is ignoring installed packages to make it not try to remove previously installed versions (which it shouldn’t do in the first place if those versions don’t live in the specified what should happen is the same as with |
@sigmavirus24 I got a bit lost following the code in setuptools/distutils ... should I just open the issue here and describe the trouble I have with |
@flying-sheep I don't think it's the same bug. @asfaltboy I chatted with @dstufft about this. He isn't as confident as I am that this is a setuptools problem. I would still open the issue on setuptools on the chance that I'm right. I might dive back into this today to be 100% certain it isn't pip, but the only mention of |
I don't think that the behaviour of
I feel that pip behaviour should at least be consistent in both cases, and it may be simplest to skip "requirement exists" test if root is passed (see entry point into However, personally, I think it would be more useful to temporarily have sys.path use target root |
Closing this as a duplicate of #3063. |
For instance, if I have no
requests
package installed globally, runningpip install --root=$DIR requests==2.7
installs the package into$DIR/usr/lib/python27/site-packages
; and subsequent re-runs do the same even when the package exists.Alternatively installing
requests
globally prevents--root
from ever running, returning the familiarRequirement already satisfied
message pointing at the global site-packages (for me, on OSX it shows/usr/local/lib/python2.7/site-packages
).By the way,
--no-use-wheel
does not seem to have an effect on this.The text was updated successfully, but these errors were encountered: