[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about (properties `((python2-variant . ,(delay XXX)))) and
From: |
Danny Milosavljevic |
Subject: |
Re: Question about (properties `((python2-variant . ,(delay XXX)))) and name resolution |
Date: |
Wed, 20 Jul 2016 09:26:37 +0200 |
Hi Leo,
On Tue, 19 Jul 2016 23:58:23 -0400
Leo Famulari <address@hidden> 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!
- Question about (properties `((python2-variant . ,(delay XXX)))) and name resolution, Danny Milosavljevic, 2016/07/19
- Re: Question about (properties `((python2-variant . , (delay XXX)))) and name resolution, Leo Famulari, 2016/07/19
- Re: Question about (properties `((python2-variant . ,(delay XXX)))) and name resolution,
Danny Milosavljevic <=
- Re: Question about (properties `((python2-variant . , (delay XXX)))) and name resolution, Ludovic Courtès, 2016/07/20
- Installing incompatible major versions of packages alongside each other, Danny Milosavljevic, 2016/07/22
- Re: Installing incompatible major versions of packages alongside each other, Ludovic Courtès, 2016/07/22
- Re: Installing incompatible major versions of packages alongside each other, Leo Famulari, 2016/07/22