-
Notifications
You must be signed in to change notification settings - Fork 42
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
Move builds to use matplotlib 3.5.x #2233
Conversation
I've just tried Mac installer from this PR and I am still getting error: |
9ce6785
to
733ed62
Compare
Three additional changes here to get this to work:
This PR now produces a working windows installer. |
Mac installer works now! |
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.
There was a discussion some time ago about strict versions and I think we concluded that we want to keep them (at least that's what I remmber).
Can someone test Windows installer? |
Sticking to PEP440 versions is a good idea. Importing and running With distutils going away, there's not actually a long term option to keep that call to StrictVersion there in any case. |
I just tested the Windows installer and SasView launched as expected.
Thre was a recent discussion in PR #2168, specifically this comment chain but I think there was mention of it again in that PR as well. |
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.
I'm pretty certain the changes in sasview.__init__
will conflict with the work done in #2168 and the changes to setup.py
might as well. The work is compatible, but things were moved around in that PR, so @lucas-wilkins might need to integrate these changes in his branch before merging.
@lucas-wilkins did you have a chance to look at it? |
@wpotrzebowski Not this one, but its a continuation of #2213 right? I approved that one, and this appears to just add the updates to Regarding the StrictVersion thing, we can do proper versioning without calling the @krzywon There are likely some conflicts, they'll just have to be sorted by whoever merges last. |
This patch attempts to fix compatibility with matplotlib 3.5.x by updating the code to avoid functions that were deprecated (in some cases for years) and have now been removed. Merging this patch at least allows the sasview GUI to start with matplotlib 3.5; additional places where code needs to be updated may well be uncovered by automated or manual testing. Closes: SasView#2170
setuptools complains loudly if distutils is also used, and exits with error in the 'docs' step since distutils.core.Command rather than setuptools.Command was used for that step.
Unpinning matplotlib allows a newer matplotlib to be installed, saves it being broken by setuptools, and should therefore unbreak the build. Closes: SasView#2222
The distutils module is deprecated and will soon disappear from Python. This patch removes use of distutils from SasView; none of the uses had any functionality already.
Use pip to produce a list of installed packages and their versions to make it easier to see what versions of packages have ended up installed in the build environment amongst pinning from this project and its dependencies.
733ed62
to
7b5b48e
Compare
Rebased onto current |
Updating matplotlib to version 3.5.x means that the conflicting pinning and bugs in setuptools for matplotlib vs setuptools vs numba is avoided.
This should fix #2222.
This PR necessarily includes the commits from #2216 and #2213.