* multiple versions
@ 2016-07-16 13:57 Vincent Legoll
2016-07-16 20:49 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Vincent Legoll @ 2016-07-16 13:57 UTC (permalink / raw)
To: help-guix
Hello,
I m trying to get python3 & python2 installed for the same user
guix package -i python@2 -i python@3
but that does not look like it will do what I want:
vince@guixsd ~/guix-packages$ guix package -i python@2 python@3
The following package will be downgraded:
python 3.4.3 → 2.7.10
/gnu/store/7fm1qk703x47qzb9p6xg08cxgb009akz-python-2.7.10
The following package will be upgraded:
python 3.4.3 → 3.4.3
/gnu/store/dsp685maxqc1i6qcib77449g2b6b7qah-python-3.4.3
I've looked at
https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-package.html#Invoking-guix-package
And that could use some more involved examples, for such non trivial needs...
--
Vincent Legoll
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: multiple versions
2016-07-16 13:57 multiple versions Vincent Legoll
@ 2016-07-16 20:49 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2016-07-16 20:49 UTC (permalink / raw)
To: Vincent Legoll; +Cc: help-guix
Hi,
Vincent Legoll <vincent.legoll@gmail.com> skribis:
> I m trying to get python3 & python2 installed for the same user
>
> guix package -i python@2 -i python@3
>
> but that does not look like it will do what I want:
>
> vince@guixsd ~/guix-packages$ guix package -i python@2 python@3
> The following package will be downgraded:
> python 3.4.3 → 2.7.10
> /gnu/store/7fm1qk703x47qzb9p6xg08cxgb009akz-python-2.7.10
>
> The following package will be upgraded:
> python 3.4.3 → 3.4.3
> /gnu/store/dsp685maxqc1i6qcib77449g2b6b7qah-python-3.4.3
This is impossible. A profile can contain at most one package of a
given name.
However, what you can do is create separate profiles:
guix package -p pytwo -i python@2
guix package -p pythree -i python@3
… or use ‘guix environment’:
guix environment --ad-hoc python@2
HTH!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-16 20:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-16 13:57 multiple versions Vincent Legoll
2016-07-16 20:49 ` Ludovic Courtès
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).