-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
sagemath: update to 9.7 #39876
sagemath: update to 9.7 #39876
Conversation
There was one failure that may be related to singular, or maybe it's just some transient failure with pexpect. I'm copying it here to save it. I'll soon push an updated PR using matplotlib 3.6, the CI will run again then and we'll see.
|
Some comments:
|
Please make sure to pull How does sagemath break with matplotlib >= 3.6.0 (aside from the contourpy dependency that I overlooked in the last update)? |
Thanks, I'll include that and try to upstream whatever is needed to support python 3.11 (cf https://trac.sagemath.org/ticket/33842) What's the expected/intended ETA for python 3.11?
I think I managed to fix everything -- I didn't get the time to make a proper patch and push, but I'll try to do it soon and upstream it. |
The last official word I saw was a Py 3.11 release 24 Oct. I've been regularly building the python world with rc2 but haven't really run-tested much. As we get closer, I'll probably install rc2 on something that I use regularly, then bump to the official release and use it for a week or so. I'll probably aim to merge 3.11 by early November. |
172e996
to
8961a92
Compare
I've just pushed a version that passes all doctests (x86_64) using matplotlib 3.6.1. |
8961a92
to
0a9293a
Compare
Trying to natively build and check this on aarch64: I encounter 1 test failure in giac, then it works successfully with ntl and singular (using the libtool PR), but fails with sbcl (in do_build I get |
Ouch, yes... I forgot about giac so the CI failed at that. That is a known issue on giac testsuite, safe to ignore (I shall disable the test if I don't find an easy workaround). Other than that, everything passes for me. I don't know about sbcl. Did you try building maxima with ~sbcl (or just remove aarch64 from the case in maxima template? I think maxima-ecl should be good enough for sagemath. |
Thanks, with ~sbcl then it works.
After building some nocross stuff (I wish we had native builders :),
it only fails a few tests by timeout, so it looks good.
I used XBPS_CHECK_PKGS=yes, not full, for now.
|
b044788
to
fb78a5d
Compare
9ec08d3
to
62258e2
Compare
The check failures have to do with gap (atlasrep pkg) trying to download files from the network (and printing warnings b/c this fails since neither I will patch gap so it defaults to not download anything. The way the feature is implemented is not suitable for a system package anyway (wants to have a few shared 1777 directories, which I think is not an option). Eventually, if these data files are important, we could try to download the data package and install it in the system... If someone needs this please tell me. See for instance https://www.math.rwth-aachen.de/homes/Thomas.Breuer/atlasrep/ where we are offered to download https://www.math.rwth-aachen.de/homes/Thomas.Breuer/atlasrep/atlasrepdata.tar.gz which is 22M so nothing compared to the current size of the gap package) |
I am not worried about the checks. As for the data files, let somebody who needs them PR their addition. Can this be ready to merge within the next week? I plan to bump Python next Saturday (5 Nov) and would like not to break your Sage workflow. |
62258e2
to
b381da6
Compare
I'm not sure what went wrong with i686. All started with
Probably a race condition, since CI is doctesting using 2 threads. More doctest failures after this are all caused by I don't think we should delay this PR for this (maybe someone can restart that test to be sure). |
@leahneukirchen @dkwo : I think this is ready to merge. |
@ahesford: I'm now testing this PR with python 3.11 (using your branch from #39346). Compilation went fine, but sage fails to start due to some deprecated python stuff that was removed in 3.11. There is a candidate patch in https://trac.sagemath.org/ticket/33842 which I'm trying now. Based on the discussion there, we may be needing more patches in sagemath and/or python3-cypari2. I'll report back, hopefully we can have this working before the python update. |
b381da6
to
c4a6d33
Compare
I added the update of However, I'm not being able to even start sage (no solution available yet, see https://trac.sagemath.org/ticket/33842#comment:48). This is a major showstopper for me. |
Just as a summary of the situation wrt to python 3.11 for @ahesford :
All of this does not affect the current PR with python 3.10. It would be nice to have it merged since having all the updated packages in the main repo makes it easier to work on they python 3.11 fixes. |
I agree, for various reasons. |
OK, time to focus on getting this ready for Python 3.11. @tornaria if there is no more obvious fix in the next week, I'm tempted to pull your no-op delete patch in https://trac.sagemath.org/ticket/33842#comment:63. It seems the only side-effect of this patch is that stale weakrefs will persist in the dictionary. Those refs are checked when items are accessed so it should be harmless except for some wasted memory. What say you? |
Not completely unreasonable. Let me try to cook up a PR to fix the rest of the issues (there are lots of issues but none look very bad at first sight, I'm already done with a few). |
@ahesford: I think I have a fix using standard python api. I'll soon make a PR after I finish testing and can clean up a bit, if you want to stick to your schedule for python 3.11, I think we will be able to do it. |
Thanks. I'm planning to start the rebuild around 1300 UTC on Saturday, 5 Nov. The whole process should take 2--3 days. As long as your fixes are ready in the next five days or so, we can support sage without interruption. |
[EDIT] this ticket includes:
Everything seems to be working ok, this is now ready for merging.
With respect to the original description:
This includes #39838, #39840, #39846, #39872, #39866, also update eclib-20220621.
For now I'm reverting python3-matplotlib to 3.5.3_1 since 3.6.0_1 gives a lot of problems (#39857 adds python3-contourpy which will solve some, but I think there are more issues).
I want to make sure everything works ok and the full testsuite passes as is. Then I'll just move matplotlib back to 3.6.0_1 and try to see if it's feasible to fix or workaround the issues (sagemath-the-distro is still on matplotlib 3.5.2 and I didn't find anything about the update to 3.6.0)
Testing the changes