From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: Fixing package-with-python2 (was: Package transformations) Date: Mon, 1 Feb 2016 18:12:58 +0100 Message-ID: <20160201171258.GA16821@debian> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQI2H-0002aC-N1 for guix-devel@gnu.org; Mon, 01 Feb 2016 12:13:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQI2D-000134-SU for guix-devel@gnu.org; Mon, 01 Feb 2016 12:13:09 -0500 Received: from mailrelay6.public.one.com ([91.198.169.200]:27276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQI2D-00012D-Fy for guix-devel@gnu.org; Mon, 01 Feb 2016 12:13:05 -0500 Content-Disposition: inline In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: "Thompson, David" Cc: guix-devel On Mon, Feb 01, 2016 at 08:49:10AM -0500, Thompson, David wrote: > Here's a potential solution for 'package-with-python2': module > introspection. AIUI, the issue is that some Python 2 packages need > extra manual tweaking, but 'package-with-python2' creates package > variants without these tweaks. Our algorithm could look up > 'python2-foo' in (gnu packages python) and use that package object, if > it exists. This would stop the recursive transformation for that > branch of the dependency graph and allow us to tweak Python 2 variants > as needed without fear. I suggested the same off-line: Rewrite the variable name and use that. But I was told it could not be done in Guile, so I am happy to stand corrected. Andreas