From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Hinsen Subject: Re: installing python 2 and python 3 in the same profile Date: Sun, 11 Mar 2018 10:11:18 +0100 Message-ID: References: <87y3j4l3xj.fsf@mdc-berlin.de> <20180310083421.GA26219@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eux0n-0006OD-Qg for guix-devel@gnu.org; Sun, 11 Mar 2018 05:11:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eux0k-0008QU-LV for guix-devel@gnu.org; Sun, 11 Mar 2018 05:11:25 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:58229) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eux0k-0008Pu-EH for guix-devel@gnu.org; Sun, 11 Mar 2018 05:11:22 -0400 In-Reply-To: <20180310083421.GA26219@thebird.nl> Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org On 10/03/2018 09:34, Pjotr Prins wrote: >> It still works with ad-hoc environments, but manifests containing both >> Python versions cannot be instantiated any more. This is too strict, >> because we know that these two variants don’t cause conflicts. > > That is not my experience. Any mix is a problem. I agree. Even if "it works" superficially, it's hard to do serious work with Python when you have the two versions in the same profile. In fact, I find that Guix is the best package manager for dealing with this precisely because it allows me to have multiple independent profiles. > I suggest not to go there. Teach people about profiles and > environments and all should be fine. You can support Python 3, Python Yes, and perhaps make working with profiles a bit easier. For example, I'd appreciate a "guix profile" resembling "guix environment": guix profile ~/profiles/python2 would start a shell with the python2 profile, and guix profile ~/profiles/python2 command would run "command" in the context of the profile. This is actually on my to-do list. > I must add that in most of my Guix experience I relied on > $HOME/.guix-profile. But these days I hardly use that anymore. Just > for some basic desktop tooling. Using multiple profiles is the only > way to mix versions and keep a level of sanity. Same here. Konrad.