-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Merge pull request #11786 from timhoffm/collections-abc #15191
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
Merge pull request #11786 from timhoffm/collections-abc #15191
Conversation
Fix collections import warnings for Python 3.7 Put try...except blocks in to support py27
MAINT: use collections.abc for 3.7 Conflicts: lib/matplotlib/cbook/__init__.py Added try-except block to handle py2 case
It looks like building Matplotlib on python2 an appveyor has bit-rotted. The first SO result for this error is https://stackoverflow.com/questions/8959973/il-mismatch-between-p1-version-20080116-and-p2-version-20070207 which suggests we have miss-matched versions of visual studio. |
Do we really want to worry about MPL 2.x compatibility with py3.7? Like fine if we do, but maybe 2.x should just have a maximum python version it supports? |
Yes, because we want to make the python2 -> python3 transition as smooth as possible for people just doing this now. There will be people jumping from py27 -> py37 so not making them jump from mpl 2.2.x -> 3.2.x in the same go. Also, as a general principle, any branch we are still supporting should support all released versions of Python per https://numpy.org/neps/nep-0029-deprecation_policy.html |
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.
Thats fine, this seems to work fine on 2.7 for travis, so I imagine its fine for appveyor...
I restarted the failure on appveyor, and it fails consistently. |
Yes I don’t doubt that apveyor isn’t building just that it’s not the fault of this PR |
AppVeyor has been broken for a very long time. I tried to fix some of it, but don't really understand the Py2 errors. Since this works on Py3 (which is the point) on master and Py2 on Travis, I'm inclined to merge and just fix AppVeyor later. |
Fix collections import warnings for Python 3.7
Put try...except blocks in to support py27