From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Question about (properties `((python2-variant . ,(delay XXX)))) and name resolution Date: Wed, 20 Jul 2016 09:26:37 +0200 Message-ID: <20160720092637.5813b122@scratchpost.org> References: <20160719194754.254cf411@scratchpost.org> <20160720035823.GB21435@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPlu7-0003EE-Rn for guix-devel@gnu.org; Wed, 20 Jul 2016 03:26:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPlu1-0006MZ-Q6 for guix-devel@gnu.org; Wed, 20 Jul 2016 03:26:50 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:46712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPlu1-0006MN-JE for guix-devel@gnu.org; Wed, 20 Jul 2016 03:26:45 -0400 In-Reply-To: <20160720035823.GB21435@jasmine> 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" To: Leo Famulari Cc: guix-devel@gnu.org Hi Leo, On Tue, 19 Jul 2016 23:58:23 -0400 Leo Famulari wrote: > In this case, it looks like the Python 2 variant of the package is the > same as the Python 3 variant, aside from the Python version. So, you > should be able to drop the (properties `((python2-variant ...) line from > the python-ptpython package. I tried that, but I still can't do $ guix package -i ptpython-2 because: guix package: error: ptpython: package not found for version 2 . I've since settled on (define-public ptpython-2 (let ((base (package-with-python2 (strip-python2-variant ptpython)))) (package (inherit base) (name "ptpython-2")))) ... which does work. On second thought the package-with-python2 probably can't recognize the name otherwise. Now, the ptpython executables are still called the same - so you can't install ptpython and ptpython-2 at the same time. > I hope that helps! Yup, thanks!