Message ID | 20230316171634.320626-4-marmarek@invisiblethingslab.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/4] tools: convert setup.py to use setuptools | expand |
On 16.03.2023 18:16, Marek Marczykowski-Górecki wrote:
> Python2 is not supported anymore.
There are two things here which concern me: For one, how come this is
at the end of a series? You want to keep in mind that any series may
be committed piecemeal (unless an indication to the contrary is in
the cover letter, but there's none here in the first place).
The other aspect is that there's no indication here of it being
consensus that we raise the baseline requirement for Python, and for
Python alone. A decision towards the wider topic of raising baseline
requirements is, as you may recall from the meeting in Cambridge,
still pending.
Jan
On Fri, Mar 17, 2023 at 09:46:33AM +0100, Jan Beulich wrote: > On 16.03.2023 18:16, Marek Marczykowski-Górecki wrote: > > Python2 is not supported anymore. > > There are two things here which concern me: For one, how come this is > at the end of a series? You want to keep in mind that any series may > be committed piecemeal (unless an indication to the contrary is in > the cover letter, but there's none here in the first place). > > The other aspect is that there's no indication here of it being > consensus that we raise the baseline requirement for Python, and for > Python alone. A decision towards the wider topic of raising baseline > requirements is, as you may recall from the meeting in Cambridge, > still pending. Hmm, in fact the only part of this series that isn't python2 compatible anymore is "install-python-bindings" target in tools/libs/stat/Makefile. And it's enabled only with XENSTAT_PYTHON_BINDING=y is explicitly set. So, maybe this readme change isn't relevant at all, at least not yet.
On Fri, Mar 17, 2023 at 8:46 AM Jan Beulich <jbeulich@suse.com> wrote: > On 16.03.2023 18:16, Marek Marczykowski-Górecki wrote: > > Python2 is not supported anymore. > > There are two things here which concern me: For one, how come this is > at the end of a series? You want to keep in mind that any series may > be committed piecemeal (unless an indication to the contrary is in > the cover letter, but there's none here in the first place). > > The other aspect is that there's no indication here of it being > consensus that we raise the baseline requirement for Python, and for > Python alone. A decision towards the wider topic of raising baseline > requirements is, as you may recall from the meeting in Cambridge, > still pending. > To me, the idea behind that discussion was that if we agree on a policy -- or at least general principles -- then we can avoid having to have discussions on a case-by-case basis. The fact that the discussion is still open isn't a reason not to deprecate features; it just means that we still need to discuss each one on its merits. Given that Python 2 was announced unsupported years ago now, it seems obvious to me that we should stop trying to support it. Are you arguing that we *should* continue to support Python2? Do you think anyone will? If so, please either make that case, or recommend that we raise the profile of this so that others can. -George
On 17.03.2023 13:37, George Dunlap wrote: > On Fri, Mar 17, 2023 at 8:46 AM Jan Beulich <jbeulich@suse.com> wrote: > >> On 16.03.2023 18:16, Marek Marczykowski-Górecki wrote: >>> Python2 is not supported anymore. >> >> There are two things here which concern me: For one, how come this is >> at the end of a series? You want to keep in mind that any series may >> be committed piecemeal (unless an indication to the contrary is in >> the cover letter, but there's none here in the first place). >> >> The other aspect is that there's no indication here of it being >> consensus that we raise the baseline requirement for Python, and for >> Python alone. A decision towards the wider topic of raising baseline >> requirements is, as you may recall from the meeting in Cambridge, >> still pending. >> > > To me, the idea behind that discussion was that if we agree on a policy -- > or at least general principles -- then we can avoid having to have > discussions on a case-by-case basis. The fact that the discussion is still > open isn't a reason not to deprecate features; it just means that we still > need to discuss each one on its merits. > > Given that Python 2 was announced unsupported years ago now, it seems > obvious to me that we should stop trying to support it. > > Are you arguing that we *should* continue to support Python2? Do you think > anyone will? I think we really need basics of a policy first. Otherwise what can or cannot be proposed to no longer be supported is just too arbitrary. Here as well as elsewhere my fear is that thing would stop building on rather old distros, where so far things have been building fine. (For Py3 in particular that's no _that_ much of a concern, because quite some time ago qemu already started requiring it. But it would still be a change in how I would need to invoke builds on such old systems that I try Xen out on every once in a while, because I'd then need to override the Python to use not just for qemu, but globally.) Jan
diff --git a/README b/README index 755b3d8eaf8f..b2d9d79d891b 100644 --- a/README +++ b/README @@ -50,7 +50,7 @@ provided by your OS distributor: - GNU Binutils 2.24 or later * POSIX compatible awk * Development install of zlib (e.g., zlib-dev) - * Development install of Python 2.6 or later (e.g., python-dev) + * Development install of Python 3.2 or later (e.g., python3-dev) * Development install of curses (e.g., libncurses-dev) * Development install of openssl (e.g., openssl-dev) * Development install of x11 (e.g. xorg-x11-dev) @@ -180,9 +180,9 @@ Python Runtime Libraries Various tools, such as pygrub, have the following runtime dependencies: - * Python 2.6 or later. + * Python 3.2 or later. URL: http://www.python.org/ - Debian: python + Debian: python3 Note that the build system expects `python` to be available. If your system only has `python2` or `python3` but not `python` (as in Linux From Scratch),
Python2 is not supported anymore. Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> --- README | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)