From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Fixing package-with-python2 (was: Package transformations) Date: Mon, 1 Feb 2016 08:49:10 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQEqu-0004OL-AZ for guix-devel@gnu.org; Mon, 01 Feb 2016 08:49:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQEqt-0002YS-9s for guix-devel@gnu.org; Mon, 01 Feb 2016 08:49:12 -0500 Received: from mail-yk0-x230.google.com ([2607:f8b0:4002:c07::230]:35337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQEqt-0002Y2-4e for guix-devel@gnu.org; Mon, 01 Feb 2016 08:49:11 -0500 Received: by mail-yk0-x230.google.com with SMTP id r207so103056734ykd.2 for ; Mon, 01 Feb 2016 05:49:10 -0800 (PST) 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: Efraim Flashner Cc: guix-devel On Mon, Feb 1, 2016 at 8:06 AM, Efraim Flashner wrote: > I looked over the commit but not deeply enough yet, would it be possible to > use some of the logic in this to fix the package-with-python2 issue? 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. Also, somewhat unrelated, package-with-python2 could add setuptools as an input to these packages so we can remove all the unnecessary usage of it in Python 3 packages. Thoughts? - Dave