-
-
Notifications
You must be signed in to change notification settings - Fork 519
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
Support minimal system Python version 3.6 (for venv) #29033
Comments
comment:2
Related to the question of what Python versions are good is #26457 - "Do not depend on a patched Python" |
comment:3
Batch modifying tickets that will likely not be ready for 9.1, based on a review of the ticket title, branch/review status, and last modification date. |
This comment has been minimized.
This comment has been minimized.
Changed dependencies from #29032 to none |
comment:4
This would need rebasing |
This comment has been minimized.
This comment has been minimized.
comment:5
Edited description to clarify that this is about the venv python3, not sage-system-python. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Changed branch from u/embray/build/configure/python3.6 to u/mkoeppe/build/configure/python3.6 |
comment:9
Tests at https://github.com/mkoeppe/sage/pull/37/checks New commits:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:14
TODO: Check |
comment:15
LGTM if those tests pass. |
comment:16
Tests now at https://github.com/mkoeppe/sage/actions/runs/127369767 |
Reviewer: Michael Orlitzky |
comment:18
Thank you! |
Changed author from Erik Bray to Erik Bray, Matthias Koeppe |
Changed reviewer from Michael Orlitzky to Matthias Koeppe, Michael Orlitzky |
Changed branch from u/mkoeppe/build/configure/python3.6 to |
Changed commit from |
comment:21
C.UTF-8 locale is a Debian-specific thing (and maybe Fedora). Please don't assume that it is available. On Arch, this causes lots (as in, one every other line in the compilation output) of warnings
|
comment:22
on another ticket, fixing docbuild on non-EN locales, someone using Arch complained that |
comment:23
Replying to @antonio-rojas:
Sorry about that, I didn't realize that Gentoo's glibc was patched (the patches are in an unusual place). It looks like discussion is still ongoing for glibc: https://sourceware.org/pipermail/libc-alpha/2020-June/115224.html Musl, on the other hand, already supports it I think? https://wiki.musl-libc.org/functional-differences-from-glibc.html In any case, we should probably revert to |
comment:24
the locale issue is being dealt with on #30053 |
comment:25
This has introduced an unfortunate bug related to a weird search order in As modifying This is of course an autoconf bug, too, as |
comment:26
Replying to @dimpase:
see #30546 for a fix |
Follow up regarding
After #30559,
|
comment:28
#31009 is taking care of this. |
With #27824 it is possible to create a venv over an existing Python 3.7 instead of building the python3 spkg.
This is designed to work with Python 3.7 (and < 3.8) since that's what's currently used by sage-the-distribution and is best-tested.
However, it turns out an existing Python 3.6 can work just fine as the minimum Python version with a few small fixes (sage-the-distribution used Python 3.6 until last year, so the degree to which we diverged from supporting it was minimal).
This would be a nice-to-have, as it would speed up the build on various distributions that we still support:
centos-8
(3.6.8),fedora-26
(3.6.5, but has 3.7.0 too), https://github.com/mkoeppe/sage/runs/743789829 - clean doctests, but exceeds 6hfedora-27
(3.6.6, but has 3.7.0 too), https://github.com/mkoeppe/sage/runs/743789883 - clean except for sympow, exceeds 6hfedora-28
(3.6.5, but has 3.7.3 too), https://github.com/mkoeppe/sage/runs/743789896 - withgcc_spkg
, build errors for gmpy2, cython, pynacopensuse-leap-15.0
(3.6.5),-15.1
(3.6.9),-15.2
(3.6.10),but not (because python3 is too old):
debian-stretch
(oldstable) (3.5.3),ubuntu-xenial
(3.5.2)and not (because a dependency of python3 is too old):
centos-7
(3.6.8):sqlite
is too old (https://github.com/mkoeppe/sage/runs/743789990)(All this is according to https://repology.org/project/python/versions as of 2020-06-05, not verified.)
Maybe since Sage is less tested with 3.6, there could be a warning against using it.
See also: #27754 (Upgrade: Python 3.8.x)
CC: @jhpalmieri @dimpase @kiwifb @orlitzky
Component: python3
Author: Erik Bray, Matthias Koeppe
Branch:
abb5607
Reviewer: Matthias Koeppe, Michael Orlitzky
Issue created by migration from https://trac.sagemath.org/ticket/29033
The text was updated successfully, but these errors were encountered: