From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: We need to generalize 'package-with-python2' Date: Tue, 03 Feb 2015 18:42:03 -0500 Message-ID: <87siembm0k.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIn6g-0003hK-0A for guix-devel@gnu.org; Tue, 03 Feb 2015 18:42:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIn6c-00009u-Pn for guix-devel@gnu.org; Tue, 03 Feb 2015 18:42:09 -0500 Received: from world.peace.net ([50.252.239.5]:33187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIn6c-00009g-LV for guix-devel@gnu.org; Tue, 03 Feb 2015 18:42:06 -0500 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: guix-devel@gnu.org The 'python-dbus' package (called 'dbus-python' upsteam) uses the 'gnu-build-system', and like most other python libraries, there will be two variants: 'python-dbus' and 'python2-dbus'. Unfortunately, 'package-with-python2' only works on packages that use 'python-build-system'. This is a problem. It wouldn't be so bad to use 'inherit' to create 'python2-dbus' from 'python-dbus', but the more serious problem is that unless we generalize 'package-with-python2', it won't work properly on any package that uses 'python-dbus' as an input. On the other hand, I realize that 'package-with-explicit-python' intentionally avoids traversing into packages unless they use 'python-build-system', and that this is important for efficiency. Any thoughts on how best to solve this? Mark