all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Federico Beffa <beffa@ieee.org>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Two packages are called ‘python-wrapper’
Date: Mon, 21 Dec 2015 11:51:30 +0100	[thread overview]
Message-ID: <87h9jcnkgd.fsf_-_@gnu.org> (raw)
In-Reply-To: <CAKrPhPPHKUZtr03fQvn1DCh2iUtrgvdNGmLUApEp2Xc2ThT1TQ@mail.gmail.com> (Federico Beffa's message of "Mon, 21 Dec 2015 10:12:35 +0100")

[-- Attachment #1: Type: text/plain, Size: 511 bytes --]

Federico Beffa <beffa@ieee.org> 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:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 536 bytes --]

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)

[-- Attachment #3: Type: text/plain, Size: 312 bytes --]


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’.

  reply	other threads:[~2015-12-21 10:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-20 17:22 python readline module Federico Beffa
2015-12-20 22:38 ` Ludovic Courtès
2015-12-21  9:12   ` Federico Beffa
2015-12-21 10:51     ` Ludovic Courtès [this message]
2015-12-21 11:09       ` Two packages are called ‘python-wrapper’ Federico Beffa
2015-12-21 13:28         ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h9jcnkgd.fsf_-_@gnu.org \
    --to=ludo@gnu.org \
    --cc=beffa@ieee.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.