-
Notifications
You must be signed in to change notification settings - Fork 21
[ubuntu-dev] force pip to use python 2.7 and not python 3+ #97
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
Conversation
|
By the way this is to fix Kresus builds, but the regression affects any other image that uses |
|
@bnjbvr Please have a look if you can. 😄 |
|
This is quite unfortunate. It would be more verbose, but would make it sense to apply the strategy advised in https://stackoverflow.com/questions/2812520/pip-dealing-with-multiple-python-versions ? i.e. use |
I agree. 😕
This does seem like the ideal solution, however this only works if you control every call-site of I read somewhere online that |
| @@ -61,6 +61,7 @@ RUN __LLVM_VERSION__="5.0" \ | |||
| && pip install --upgrade pip \ | |||
| && pip install --upgrade virtualenv \ | |||
| && pip3 install --upgrade pip \ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if you do that before pip install --upgrade pip?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I don't think this solves the problem (pip install --upgrade pip says Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages and leaves /usr/local/bin/pip on Python 3.5).
|
@bnjbvr @Martiusweb Thanks a lot for your input! However, it seems that we couldn't find cleaner solutions than the one I'm proposing, so I think we'll have to go ahead with the binary-overwrite fix for now. Any objections? |
|
ETIMEDOUT Let's ship this as is. |
This is terrible. Please suggest a better solution if you know one.