From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#40029: Preventing automatic python2 transformation of some packages Date: Wed, 11 Mar 2020 19:29:26 +0100 Message-ID: <87lfo6zqwp.fsf@devup.no> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45976) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC67H-0001t9-Oy for bug-guix@gnu.org; Wed, 11 Mar 2020 14:30:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jC67G-0002T4-LD for bug-guix@gnu.org; Wed, 11 Mar 2020 14:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49528) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jC67G-0002Sy-IJ for bug-guix@gnu.org; Wed, 11 Mar 2020 14:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jC67G-0006V4-Er for bug-guix@gnu.org; Wed, 11 Mar 2020 14:30:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:45890) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC66q-0001sU-6D for bug-guix@gnu.org; Wed, 11 Mar 2020 14:29:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jC66l-0001wd-M6 for bug-guix@gnu.org; Wed, 11 Mar 2020 14:29:36 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:59231) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jC66l-0001vW-8m for bug-guix@gnu.org; Wed, 11 Mar 2020 14:29:31 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 4E57B467 for ; Wed, 11 Mar 2020 14:29:30 -0400 (EDT) Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id 7B8413280060 for ; Wed, 11 Mar 2020 14:29:29 -0400 (EDT) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 40029@debbugs.gnu.org --=-=-= Content-Type: text/plain Guix, 'python2-sphinx' is obsolete and increasingly a maintenance burden, because we need to keep special versions around just to make it build. The only reason we have this package is because it gets pulled in automatically when using (package-with-python2 ...) on a Python 3 package that has 'python-sphinx' in inputs. Most, or all, Python packages do not use Sphinx as runtime library, but only calls its executables to generate documentation. Thus, we do not actually need the Python 2 variant. I tried fixing this in (guix build-system python) by only transforming packages whose names start with 'python-', and renaming 'python-sphinx' to just 'sphinx'. It was a clever one-liner until I realized that Python 2 packages now got a variant of 'sphinx' that's built with Python 3 (yay!), but all the *inputs* of this Sphinx variant were transformed into Python 2! So it did not actually build in the end. I'm mostly venting here, but filing the bug so we can target it for the next 'core-updates' round. Ideas welcome. There are some other improvements I'd like to see in python-build-system, such as automatically calling 'pytest' instead of the deprecated 'python setup.py test' when pytest is available. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl5pLgcACgkQoqBt8qM6 VPpwpggAuZRSn9To5PqUwMb7u3WWDrRqIxEm6GdJ7iLvKBD+og41Om3S1L6ckfL1 OOxRxX9SmDcxRQHoEl9iyCcXFZTOax8m2LGu+nOXzweSQey4+w66oPj/EhUtuAt1 oBpIAQSGZMRfjymxOskjutAFAT8hBa1VXzXIjAfqg4Z3R6NdvyuHCP2/RLLlc5xg wieC8hXhJbnhRzuEk4yOQQqvnCn/Y0ytKXBoavZ5mvRYpmHitgCw+9fbNs8nhveN XQh5a0yWFmp8tWBDCNqt+g0GvVo7HHeH2WYyUf8fjeKVyS75lDHvnxhSP7agwOl7 dbi/HcYxSVrpNGIWXj5I9HjqSwsr6Q== =mMOz -----END PGP SIGNATURE----- --=-=-=--