-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
BLD : improve how six dependency is handled #3482
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
if an old version of six is installed try to update it rather than fail.c
|
I really don't see the point in adding confusion here. The error message as it stands is clear and easy to take care of. This is the same as any other package dependency issue, right? Adding more black magic is probably not the right thing to do here. |
|
@WeatherGod: The issue is that if your |
|
Ah... lovely. I would also like to see all the version checking stuff get On Mon, Sep 8, 2014 at 11:00 AM, Michael Droettboom <
|
|
That is what this does. Most of code in the checker is just to provide sensible output. The only part that really matters is the which works, but does not play nice with easy_install (which is apparently how dependencies get installed if you use The best-case against this PR is that in can clobber user install six if there is something that has a maximum version of six as I don't think pip does dependency evaluation. |
|
why do I get a headache whenever I want to do something beyond the basic On Tue, Sep 9, 2014 at 11:43 AM, Thomas A Caswell notifications@github.com
|
|
I am not convinced there is any 'basic simple' stuff in setuptools/distutils.... |
|
LGTM 👍 |
|
@tacaswell - where is this at? |
|
I think this is ready to go. We li
A276
st |
BLD : improve how six dependency is handled
if an old version of six is installed try to update it rather than fail.
This change seems to only work with pip, not with easy-install
If you have an old version of six installed and you use pip to install matplotlib (either via making a tar-ball with sdist and
pip install path/to/tarorpip -e ./matplotlib) this works correctly.If you do
python setup.py installwith this patch it successfully updates six, but then falls over saying the version of six is too low. If you then start up python and import six, it finds the newly installed version and if you re-runpython setup.py installit will find the new version and work correctly.I suspect that this may be due to pip vs easy install vs distutils vs setuptools vs black magic issues that is probably a bug in some external code, but I have no idea which.
I did this testing in a venv with
pip install six==1.0on an ubuntu box.