[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Two packages are called ‘python-wrapper’
From: |
Ludovic Courtès |
Subject: |
Two packages are called ‘python-wrapper’ |
Date: |
Mon, 21 Dec 2015 11:51:30 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Federico Beffa <address@hidden> skribis:
> The problem appears to be that installing 'python-wrapper' brings
> in 'python-minimal' instead of 'python':
>
> $ guix environment --pure --ad-hoc python-wrapper -- python
> guix environment: warning: ambiguous package specification `python-wrapper'
> guix environment: warning: choosing python-wrapper-3.4.3 from
> gnu/packages/python.scm:312:2
Indeed, we have two packages called “python-wrapper”, a mistake from
95288fc.
This is fixed with:
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 95c24a6..e81e251 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -308,7 +308,9 @@ data types.")
(inputs `(("openssl" ,openssl)
("zlib" ,zlib)))))
-(define* (wrap-python3 python #:optional (name "python-wrapper"))
+(define* (wrap-python3 python
+ #:optional
+ (name (string-append (package-name python) "-wrapper")))
(package (inherit python)
(name name)
(source #f)
However, this entails a big rebuild, so this will have to go to
‘core-updates’.
In the meantime, I would recommend using -e to unambiguously refer to
the right wrapper. Otherwise, we could come up with workarounds, such
as keeping the ‘python-minimal-wrapper’ private.
Thoughts?
Ludo’.