all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Guix Devel <guix-devel@gnu.org>
Subject: Python 2 EOL starts to break packages
Date: Thu, 28 Jan 2021 18:10:08 +0100	[thread overview]
Message-ID: <86pn1pgf7z.fsf@gmail.com> (raw)

Hi,

The bug#46132 [1] reports the failure of the package
’python2-setuptools’.  It is expected because this Python 2 is inherited
via ’package-with-python2’ from Python 3 and the current
’python-setuptools’ is at v52.  And, Setuptools dropped the support of
Python 2 at v47.  See their changelog [2,3]:

--8<---------------cut here---------------start------------->8---
 v47.0.0

 28 May 2020
 Breaking Changes

     #2094: Setuptools now actively crashes under Python 2. Python 3.5 or later is required. Users of Python 2 should use setuptools<45.
--8<---------------cut here---------------end--------------->8---


Because Python 2 is End-Of-Life, these cases will happen more and more.
It is not new and “we” (at least me) are aware this would happen–see
bug#38420 [4] from Nov 2019; but “we“ have not really work on it.
Anyway. :-)

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

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)”.


WDYT?

1: <http://issues.guix.gnu.org/issue/46132>
2: <https://setuptools.readthedocs.io/en/latest/history.html>
3: <https://github.com/pypa/setuptools/issues/2094>
4: <http://issues.guix.gnu.org/issue/38420>


All the best,
simon


             reply	other threads:[~2021-01-28 17:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-28 17:10 zimoun [this message]
2021-01-29  3:49 ` Python 2 EOL starts to break packages Maxim Cournoyer
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=86pn1pgf7z.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=guix-devel@gnu.org \
    /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.