all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: zimoun <zimon.toutoune@gmail.com>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: Python 2 EOL starts to break packages
Date: Thu, 28 Jan 2021 22:49:13 -0500	[thread overview]
Message-ID: <87pn1oxv0m.fsf@gmail.com> (raw)
In-Reply-To: <86pn1pgf7z.fsf@gmail.com> (zimoun's message of "Thu, 28 Jan 2021 18:10:08 +0100")

Hi Simon,

zimoun <zimon.toutoune@gmail.com> writes:

[...]

> Removing ’python2-setuptools’ from Guix could break some other packages.
> Maybe?  Who knows? ;-)
>
> Instead, a plan could be:
>
>  a) move all the ’python2-<package>’ to their own module
>     say (gnu packages python2-xyz)
>  b) pin the ones which breaks; pin meaning «not use package-with-python2» 
>  c) fix a deadline announcing the remove of availability at user level
>  d) after this date, hide all the python2 packages
>  e) remove case per case these hidden python2 packages

I think that's more involved than it needs to be.  Here's how I've been
slowly getting at the Python 2 issues:

Whenever I update a Python package that breaks its Python 2 variant, I
look at the dependencies of those variants with 'guix refresh -l
python2-something'.  If all the dependents are purely python2 variants
themselves, then I proceed to remove them all from the package
collection.  If instead some non-python2 variant package
depends on it, I research if that package could be updated to make it
Python 3 compatible.  If yes, then problem solved.  Otherwise we need to
ping upstream and keep it for a little longer before it gets removed.

> Today, it does not make sense to have ’python2-setuptools’ in a manifest
> file or type ‘guix install python2-setuptools’.  So it should not be
> possible and raise “package does not exist”.  However, I could have a
> custom package that depends on ’python2-setuptools’ so it should be
> accessible via “#:use-modules (gnu packages python2-xyz)”.

Let's apply this to the current case:

$ guix refresh -l python2-setuptools

Building the following 3 packages would ensure 7 dependent packages are
rebuilt: python2-behave-web-api@1.0.6 grocsvs@0.2.6.1-1.ecd956a
syncthing-gtk@0.9.4.4

The python2-behave-web-api is not a concern (there's an existing
python-behave-web-api package), but the others are.  There's an issue
about syncthing-gtk reliance on Python 2 at
https://github.com/kozec/syncthing-gtk/issues/568.  For grocsvs I've
just commented at https://github.com/grocsvs/grocsvs/issues/6.  If the
upstream are not willing to budge, the packages can be removed after a
grace period (6 months, I'd say).

Does that help?

Maxim


  reply	other threads:[~2021-01-29  3:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-28 17:10 Python 2 EOL starts to break packages zimoun
2021-01-29  3:49 ` Maxim Cournoyer [this message]
2021-01-29 10:02   ` zimoun
2021-01-29 16:02     ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pn1oxv0m.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.