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

Please add an option to install latest setuptools/pip instead of embedded ones #563

Closed
glenfant opened this issue Feb 9, 2014 · 5 comments

Comments

@glenfant
Copy link

glenfant commented Feb 9, 2014

The equivalent shell script I use is following:

#!/bin/bash
# Updates setuptools and pip n a virtualenv
DOWNLOAD="curl -O"
#DOWNLOAD=wget
$DOWNLOAD https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
python ez_setup.py
$DOWNLOAD https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
rm ez_setup.py get-pip.py setuptools-*.tar.gz
@pfmoore
Copy link
Member

pfmoore commented Feb 9, 2014

Why can you not just do:

virtualenv foo
foo/bin/pip install -U setuptools
# or if you want the latest versions of both
# foo/bin/python -m pip install -U setuptools pip 

Having said this, an option to install the latest versions isn't out of the question.

@piotr-dobrogost
Copy link

@pfmoore
Why different syntax when upgrading both – -m pip instead of pip?

@pfmoore
Copy link
Member

pfmoore commented Feb 21, 2014

Because pip can't replace its own wrapper executable while it's running. That's certainly true on Windows, and may or may not be on Unix.

I use the guaranteed-reliable form python -m pip just to make sure the advice I give doesn't cause problems to anyone who might find this thread in future.

@pfmoore
Copy link
Member

pfmoore commented Feb 21, 2014

Not relevant, it's the OS that opens the pip.exe file and it doesn't allow removal. This has been discussed extensively on the distutils-sig list. Feel free to look there and if you can provide an implementation strategy (preferably in the form of a patch :-)) that might work, that would be fantastic.

Having said that, this is a bit off topic for this feature request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants