From unknown Thu Aug 14 22:18:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40029: Preventing automatic python2 transformation of some packages Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 11 Mar 2020 18:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40029 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 40029@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158395137924930 (code B ref -1); Wed, 11 Mar 2020 18:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Mar 2020 18:29:39 +0000 Received: from localhost ([127.0.0.1]:55501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC66t-0006U2-JU for submit@debbugs.gnu.org; Wed, 11 Mar 2020 14:29:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:52019) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC66r-0006Tt-CV for submit@debbugs.gnu.org; Wed, 11 Mar 2020 14:29:37 -0400 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled version=3.3.2 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 mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 11 Mar 2020 14:29:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=yJ61a6cpGy2ILiWxWRJy2YQxlCOQrDTrug2PbJLemcU=; b=vkVQq9Al Zgu85kjalqyUNlbmVBm9TVGoY2mbDw9R65aP8MwDUf/4+52/TvPEMPKA8NOLgWwi w+4NwmNwRy3qP7nbbpwVYftzb4DzirVGLq/O6ltLEGPwZiD98zXxvZLYOjZr+xYs YfB99s6weMUJwxBEEfgxh0cDbt9KcK7U6TOXeQevHdIvghbbHdDaK8IkCNdZDjgl vWoCNHx67dMoOSGEfKAgaF4YqPx1cuFlfkQM8e5RPQ4x/OdVPXfMcAzJUyAxg3ew F4Aut7IP2XqKjmX7iPtrjwGsZtuoCwBXdr54agUt2iJkkaaXxd+N4jjEuGBdFoS2 wcyykPmyxOubqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=yJ61a6cpGy2ILiWxWRJy2YQxlCOQr DTrug2PbJLemcU=; b=UuEWfP6TQllhp23WpXiJc72ytjUzUf4ZCSx2x2maOayNX 44hDvvev9E6NRNIBX6kOFfOX7L9OLbRheyQZmLskKlcLAPRYEQJgMyv5qjQweQkK T2ZNbgaUXnxOguaWqejpLLDcDtFHPW4VSJf8UPn1mm4rkOXQDcHf/gsxHFcc1toq rl/OdhjRFrbiH6TrMTo3YIFYVv9uqpCYxRnHON7QgKOLQreMMOncHIBtnwBRG2wp mVAh9962PE6Epz85Ue+JngX1XArBukUZk/C8kCVquxsBtDphQrk1/4G3GZIDNw6K f2mjgfspiKAXHDbNwO0VjbDZcUIMjuFDl6sWLdRcQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvfecutefuodetggdotefrodftvfcurf hrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhephffvufgffffkgggtsehgtderredtredtne cuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshhtmhgrihhl rdgtohhmqeenucfkphepkeegrddvtddvrdeikedrjeehnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdr tghomh X-ME-Proxy: 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) From: Marius Bakke User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) 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" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.19 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= 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----- --=-=-=-- From unknown Thu Aug 14 22:18:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40029: Preventing automatic python2 transformation of some packages References: <87lfo6zqwp.fsf@devup.no> Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 12 Mar 2020 12:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40029 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: mbakke@fastmail.com, 40029@debbugs.gnu.org X-Debbugs-Original-To: mbakke@fastmail.com, bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15840156051933 (code B ref -1); Thu, 12 Mar 2020 12:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Mar 2020 12:20:05 +0000 Received: from localhost ([127.0.0.1]:56121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCMon-0000V7-83 for submit@debbugs.gnu.org; Thu, 12 Mar 2020 08:20:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:58893) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCMok-0000Uu-KI for submit@debbugs.gnu.org; Thu, 12 Mar 2020 08:20:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38372) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCMoj-0002FF-9G for bug-guix@gnu.org; Thu, 12 Mar 2020 08:20:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCMoh-0001sE-PS for bug-guix@gnu.org; Thu, 12 Mar 2020 08:20:00 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:13844) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jCMoh-0001ld-9S for bug-guix@gnu.org; Thu, 12 Mar 2020 08:19:59 -0400 Received: from nijino.local (193-83-20-222.hdsl.highway.telekom.at [193.83.20.222]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 48dSZF4Y5Pz3wGj; Thu, 12 Mar 2020 13:19:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1584015589; bh=upPNk4azhp+gvGKHRWZ5vpl3G+1kZI58ci6tzBbMDDU=; h=Subject:From:To:Date:In-Reply-To; b=TUvzFkX/tFf24WYzdCxi2LHV0VJUD3x6I1sGOpfTj1WcSzJG2N3IiOm10C7ynO92R +Hh07haN8BpJEZlArBHUitNdKzhWkYdVIuT5cfw1u8TDi3lYARfowCYSUT4Ck9deuG Ie3LGH8IjhPeFEX1w/Geml1rrxqCcJdykEnLJmWk= Message-ID: <7ae635f3b5851e85dea89262c8f59980b87c28ae.camel@student.tugraz.at> From: Leo Prikler Date: Thu, 12 Mar 2020 13:19:52 +0100 In-Reply-To: 87lfo6zqwp.fsf@devup.no Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 129.27.2.202 X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > 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. I think the problem here, is that (package-with-python2 ...) overwrites all sorts of inputs per package-mapping. Perhaps one could write an alternative on top, that keeps native-inputs as-is and adds python3 to them. WDYT? From unknown Thu Aug 14 22:18:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40029: Preventing automatic python2 transformation of some packages Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 12 Mar 2020 13:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40029 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Marius Bakke Cc: 40029@debbugs.gnu.org Received: via spool by 40029-submit@debbugs.gnu.org id=B40029.15840182867371 (code B ref 40029); Thu, 12 Mar 2020 13:05:02 +0000 Received: (at 40029) by debbugs.gnu.org; 12 Mar 2020 13:04:46 +0000 Received: from localhost ([127.0.0.1]:56160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCNW2-0001up-7m for submit@debbugs.gnu.org; Thu, 12 Mar 2020 09:04:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCNW0-0001uc-Jo for 40029@debbugs.gnu.org; Thu, 12 Mar 2020 09:04:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jCNVv-0005Ff-Fh; Thu, 12 Mar 2020 09:04:39 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=49350 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jCNVt-000063-1d; Thu, 12 Mar 2020 09:04:37 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87lfo6zqwp.fsf@devup.no> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 23 =?UTF-8?Q?Vent=C3=B4se?= an 228 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 12 Mar 2020 14:04:35 +0100 In-Reply-To: <87lfo6zqwp.fsf@devup.no> (Marius Bakke's message of "Wed, 11 Mar 2020 19:29:26 +0100") Message-ID: <87r1xxu3ks.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Hi! Marius Bakke skribis: > '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. What about this evil hack? --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 323d5b4457..66306e97fc 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -99,7 +99,7 @@ for Python projects or other documents consisting of multiple reStructuredText sources.") (license license:bsd-2) - (properties `((python2-variant . ,(delay python2-sphinx)))))) + (properties `((python2-variant . ,(delay python-sphinx)))))) ;; Sphinx 2 does not support Python 2, so we stick with this older version here. ;; Remove this package once python2-pbcore no longer requires it. --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The effect should be that =E2=80=98package-with-python2=E2=80=99 always kee= ps =E2=80=98python-sphinx=E2=80=99 unchanged. (It=E2=80=99s a double-edge swo= rd.) Ludo=E2=80=99. --=-=-=-- From unknown Thu Aug 14 22:18:40 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Marius Bakke Subject: bug#40029: closed (Re: bug#40029: Preventing automatic python2 transformation of some packages) Message-ID: References: <87zh7nqutf.fsf@gnu.org> <87lfo6zqwp.fsf@devup.no> X-Gnu-PR-Message: they-closed 40029 X-Gnu-PR-Package: guix Reply-To: 40029@debbugs.gnu.org Date: Sat, 25 Jul 2020 19:06:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1595703962-2935-1" This is a multi-part message in MIME format... ------------=_1595703962-2935-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #40029: Preventing automatic python2 transformation of some packages which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 40029@debbugs.gnu.org. --=20 40029: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D40029 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1595703962-2935-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 40029-done) by debbugs.gnu.org; 25 Jul 2020 19:06:00 +0000 Received: from localhost ([127.0.0.1]:51158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzPUd-0000l7-SY for submit@debbugs.gnu.org; Sat, 25 Jul 2020 15:06:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzPUb-0000kr-8M for 40029-done@debbugs.gnu.org; Sat, 25 Jul 2020 15:05:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48885) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzPUV-0000Q4-9x; Sat, 25 Jul 2020 15:05:51 -0400 Received: from 84-52-226.102.3p.ntebredband.no ([84.52.226.102]:46488 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jzPUU-0000dJ-Lw; Sat, 25 Jul 2020 15:05:51 -0400 From: Marius Bakke To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#40029: Preventing automatic python2 transformation of some packages In-Reply-To: <87r1xxu3ks.fsf@gnu.org> References: <87lfo6zqwp.fsf@devup.no> <87r1xxu3ks.fsf@gnu.org> Date: Sat, 25 Jul 2020 21:05:32 +0200 Message-ID: <87zh7nqutf.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40029-done Cc: 40029-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi! > > Marius Bakke skribis: > >> '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. > > What about this evil hack? > > diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm > index 323d5b4457..66306e97fc 100644 > --- a/gnu/packages/sphinx.scm > +++ b/gnu/packages/sphinx.scm > @@ -99,7 +99,7 @@ > for Python projects or other documents consisting of multiple reStructur= edText > sources.") > (license license:bsd-2) > - (properties `((python2-variant . ,(delay python2-sphinx)))))) > + (properties `((python2-variant . ,(delay python-sphinx)))))) >=20=20 > ;; Sphinx 2 does not support Python 2, so we stick with this older versi= on here. > ;; Remove this package once python2-pbcore no longer requires it. > > The effect should be that =E2=80=98package-with-python2=E2=80=99 always k= eeps > =E2=80=98python-sphinx=E2=80=99 unchanged. (It=E2=80=99s a double-edge s= word.) This is brilliant and I can confirm it works. It never would have occured to me that this is possible. 'python2-sphinx' will be removed on the next staging cycle. Thanks! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl8cgnwACgkQoqBt8qM6 VPo94Qf/f78hVUFbDHDNFDUzjfy/6MPC8fKhYIEmt/spFF/LvISdVsS5HJPQcrTo 1nRSrCcm6wfIN7Mazxs8YRZm+tF8EFnge6UHDZyTfEzB0L7FCWFuIYkmANJquiJY O+gE9tZ+cgkSmxxKbOhjhpL6T6dkF+Gp1ud79UIzj52znmIzqiFLp6Dqo+jKaN4D 1hVviul5ePhsXszcnhecS5+wv7bsa/N8lv7fKTRRDbpY921RAeiToT25zgk+7mc/ Obn3krvAW/eWVcKUh1YKARAeXFfVtPIQ+jgBYvS1HpXnHffcngVpJ8GKpd/cY1E6 qGFyqCeKsLTzaZdemyNNSUpognTwTA== =qFLd -----END PGP SIGNATURE----- --=-=-=-- ------------=_1595703962-2935-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 11 Mar 2020 18:29:39 +0000 Received: from localhost ([127.0.0.1]:55501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC66t-0006U2-JU for submit@debbugs.gnu.org; Wed, 11 Mar 2020 14:29:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:52019) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC66r-0006Tt-CV for submit@debbugs.gnu.org; Wed, 11 Mar 2020 14:29:37 -0400 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled version=3.3.2 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 mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 11 Mar 2020 14:29:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=yJ61a6cpGy2ILiWxWRJy2YQxlCOQrDTrug2PbJLemcU=; b=vkVQq9Al Zgu85kjalqyUNlbmVBm9TVGoY2mbDw9R65aP8MwDUf/4+52/TvPEMPKA8NOLgWwi w+4NwmNwRy3qP7nbbpwVYftzb4DzirVGLq/O6ltLEGPwZiD98zXxvZLYOjZr+xYs YfB99s6weMUJwxBEEfgxh0cDbt9KcK7U6TOXeQevHdIvghbbHdDaK8IkCNdZDjgl vWoCNHx67dMoOSGEfKAgaF4YqPx1cuFlfkQM8e5RPQ4x/OdVPXfMcAzJUyAxg3ew F4Aut7IP2XqKjmX7iPtrjwGsZtuoCwBXdr54agUt2iJkkaaXxd+N4jjEuGBdFoS2 wcyykPmyxOubqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=yJ61a6cpGy2ILiWxWRJy2YQxlCOQr DTrug2PbJLemcU=; b=UuEWfP6TQllhp23WpXiJc72ytjUzUf4ZCSx2x2maOayNX 44hDvvev9E6NRNIBX6kOFfOX7L9OLbRheyQZmLskKlcLAPRYEQJgMyv5qjQweQkK T2ZNbgaUXnxOguaWqejpLLDcDtFHPW4VSJf8UPn1mm4rkOXQDcHf/gsxHFcc1toq rl/OdhjRFrbiH6TrMTo3YIFYVv9uqpCYxRnHON7QgKOLQreMMOncHIBtnwBRG2wp mVAh9962PE6Epz85Ue+JngX1XArBukUZk/C8kCVquxsBtDphQrk1/4G3GZIDNw6K f2mjgfspiKAXHDbNwO0VjbDZcUIMjuFDl6sWLdRcQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvfecutefuodetggdotefrodftvfcurf hrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhephffvufgffffkgggtsehgtderredtredtne cuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshhtmhgrihhl rdgtohhmqeenucfkphepkeegrddvtddvrdeikedrjeehnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdr tghomh X-ME-Proxy: 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) From: Marius Bakke To: bug-guix@gnu.org Subject: Preventing automatic python2 transformation of some packages User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) 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" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.19 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= 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----- --=-=-=-- ------------=_1595703962-2935-1--