unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Diego Nicola Barbato <dnbarbato@posteo.de>
Cc: 27572-done@debbugs.gnu.org
Subject: bug#27572: simultaneous installation of python2 and python3 fails
Date: Tue, 11 Jul 2017 11:29:25 +0200	[thread overview]
Message-ID: <87k23fxqx6.fsf@gnu.org> (raw)
In-Reply-To: <87van0b7vd.fsf@GlaDOS.home> (Diego Nicola Barbato's message of "Mon, 10 Jul 2017 17:59:34 +0200")

Hi Diego,

Diego Nicola Barbato <dnbarbato@posteo.de> skribis:

> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Hello Diego,
>>
>> Diego Nicola Barbato <dnbarbato@posteo.de> skribis:
>>
>>> When running the command "guix pull && guix package -i python@2 python"
>>> instead of installing the latest version of python2 and python3, as it
>>> used to do until about four weeks ago, guix gives following error
>>> message (hash values replaced with ...):
>>>
>>>   guix package: error: profile contains conflicting entries for python:out
>>>   guix package: error:   first entry: python@2.7.13:out /gnu/store/...-python-2.7.13
>>>   guix package: error:   second entry: python@3.5.3:out /gnu/store/...-python-3.5.3
>>
>> Indeed, Guix now refuses to install two different versions or variants
>> of the same package since in general they would conflict.
>>
>> In this particular case, they do not actually conflict, I think, since
>> python@3 provides executables prefixed by “3” whereas python@2 does not.
>>
>> Perhaps we should rename “python” to “python2” or something like that?
>>
>> In the meantime, I recommend using separate profiles for your Python 2
>> and Python 3 development environments.  Is that a viable option for you?
>
> Using separate profiles seems like a reasonable option. I also tried
> using guix environment with the --ad-hoc flag.

Right, that should work fine.

I’m closing this bug now; please do reopen it if you feel like the
solutions above aren’t quite convenient after all.

Thank you,
Ludo’.

      reply	other threads:[~2017-07-11  9:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-04  6:04 bug#27572: simultaneous installation of python2 and python3 fails Diego Nicola Barbato
2017-07-07 11:27 ` Ludovic Courtès
2017-07-10 15:59   ` Diego Nicola Barbato
2017-07-11  9:29     ` Ludovic Courtès [this message]

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87k23fxqx6.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=27572-done@debbugs.gnu.org \
    --cc=dnbarbato@posteo.de \
    /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 public inbox

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

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