#31855 closed defect (fixed)
Upgrade gmpy2 to add python 3.10 support
Reported by: | mkoeppe | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | sage-9.5 |
Component: | packages: standard | Keywords: | |
Cc: | vdelecroix, dimpase, mjo, fbissey | Merged in: | |
Authors: | Matthias Koeppe | Reviewers: | Dima Pasechnik |
Report Upstream: | Fixed upstream, but not in a stable release. | Work issues: | |
Branch: | 41f7f4e (Commits, GitHub, GitLab) | Commit: | |
Dependencies: | Stopgaps: |
Description (last modified by )
gmpy2
fails to build with Python 3.10: error: ‘_PyHASH_NAN’ undeclared - https://bugzilla.redhat.com/show_bug.cgi?id=1959010 ...
2.1.0rc1 has a fix.
Change History (32)
comment:1 Changed 14 months ago by
- Branch set to u/mkoeppe/patch_upgrade_gmpy2_to_add_python_3_10_support
comment:2 Changed 14 months ago by
- Commit set to 8cd9ece1cb6942ee612bf7aff9cfad41d0946c2e
- Status changed from new to needs_review
comment:3 Changed 13 months ago by
Why not use upstream patch https://github.com/aleaxit/gmpy/pull/297?
comment:4 follow-up: ↓ 5 Changed 13 months ago by
No idea, why doesn't upstream make a proper release at some point?
comment:5 in reply to: ↑ 4 ; follow-up: ↓ 7 Changed 13 months ago by
Replying to mkoeppe:
No idea, why doesn't upstream make a proper release at some point?
No idea, worth asking. Though the patch was merged a week ago.
comment:6 Changed 13 months ago by
- Cc dimpase added
comment:7 in reply to: ↑ 5 Changed 13 months ago by
- Report Upstream changed from N/A to Reported upstream. No feedback yet.
Replying to vdelecroix:
Replying to mkoeppe:
No idea, why doesn't upstream make a proper release at some point?
No idea, worth asking. Though the patch was merged a week ago.
I've opened https://github.com/aleaxit/gmpy/issues/303
comment:8 Changed 13 months ago by
How about using the upstream patch https://patch-diff.githubusercontent.com/raw/aleaxit/gmpy/pull/297.diff instead?
comment:9 Changed 12 months ago by
- Milestone changed from sage-9.4 to sage-9.5
comment:10 Changed 10 months ago by
Looks like upstream is preparing a proper release now - https://github.com/aleaxit/gmpy/commit/97424526eaf30ed33390d7b12d20d411583c6322
comment:11 Changed 10 months ago by
- Commit changed from 8cd9ece1cb6942ee612bf7aff9cfad41d0946c2e to 41f7f4ef9b3d4353fb4ca700d1f12e1bff919265
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
41f7f4e | build/pkgs/gmpy2: Update to 2.1.0rc1
|
comment:12 Changed 10 months ago by
- Description modified (diff)
- Summary changed from Patch/upgrade gmpy2 to add python 3.10 support to Upgrade gmpy2 to add python 3.10 support
comment:13 Changed 10 months ago by
- Report Upstream changed from Reported upstream. No feedback yet. to Fixed upstream, but not in a stable release.
comment:14 Changed 10 months ago by
- Cc mjo added
comment:15 Changed 10 months ago by
- Reviewers set to https://github.com/mkoeppe/sage/actions/runs/1242854091, https://github.com/mkoeppe/sage/actions/runs/1242854090
comment:16 Changed 10 months ago by
OK by me when the GH actions finish. Everyone is already using beta5, so it's not like rc1 is a step down in purported release quality.
comment:17 Changed 9 months ago by
- Priority changed from major to critical
Let's get this in please.
comment:18 Changed 8 months ago by
I am in Fedora 35 now and I would like to test it. I can use python3.10 (following the hack of the packager of sagemath in Fedora) but I do not know how to deal with cysignals. Any clue?
comment:19 Changed 8 months ago by
See #32576 for cysignals
comment:20 Changed 8 months ago by
I saw it but I am not how to deal with it. Apparently in Fedora they were able to compile cysignals and to use it as a system package.
comment:21 Changed 8 months ago by
You can help on #32576 by reviewing the proposed changes to cysignals
comment:22 Changed 8 months ago by
This is the status. I used the configure file of sagemath.spec in fedora which allows to use python3.10.0 in the system. Using the link in #32576 I used the revised cysignals, and I also used gmpy2.1.0rc1, both are compiled. The only unsuccessful package is pyzmq; the fedora system package python3-zmq exists and I was able to recompile it locally. The error in Sage is:
gcc build/temp.linux-x86_64-3.9/tmp/timer_createq5lapz40.o -o build/temp.linux-x86_64-3.9/a.out
error: [Errno 2] No such file or directory: 'a.out'
It happens with 22.2.1 and 22.0.3 I do not know how to use the system package for this.
comment:23 Changed 8 months ago by
I have opened #32828 for the issues with pyzmq
. I think they are unrelated to python 3.10
comment:24 Changed 8 months ago by
- Reviewers changed from https://github.com/mkoeppe/sage/actions/runs/1242854091, https://github.com/mkoeppe/sage/actions/runs/1242854090 to https://github.com/mkoeppe/sage/actions/runs/1429845185, https://github.com/mkoeppe/sage/actions/runs/1429845182
comment:25 Changed 8 months ago by
- Reviewers changed from https://github.com/mkoeppe/sage/actions/runs/1429845185, https://github.com/mkoeppe/sage/actions/runs/1429845182 to https://github.com/mkoeppe/sage/actions/runs/1430376300
comment:26 Changed 8 months ago by
Tests look good, let's please get this update in.
comment:27 Changed 8 months ago by
- Reviewers changed from https://github.com/mkoeppe/sage/actions/runs/1430376300 to https://github.com/mkoeppe/sage/actions/runs/1430376304, https://github.com/mkoeppe/sage/actions/runs/1430376300
comment:28 Changed 8 months ago by
- Cc fbissey added
comment:29 Changed 8 months ago by
- Reviewers changed from https://github.com/mkoeppe/sage/actions/runs/1430376304, https://github.com/mkoeppe/sage/actions/runs/1430376300 to Dima Pasechnik
- Status changed from needs_review to positive_review
lgtm
comment:30 Changed 8 months ago by
Thanks!
comment:31 Changed 7 months ago by
- Branch changed from u/mkoeppe/patch_upgrade_gmpy2_to_add_python_3_10_support to 41f7f4ef9b3d4353fb4ca700d1f12e1bff919265
- Resolution set to fixed
- Status changed from positive_review to closed
comment:32 Changed 7 months ago by
- Commit 41f7f4ef9b3d4353fb4ca700d1f12e1bff919265 deleted
gmpy2 stable version 2.1 has been released.
New commits:
build/pkgs/gmpy2/patches: Add patches from Fedora @python/python3.10