From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: Re: installing python 2 and python 3 in the same profile Date: Sun, 11 Mar 2018 14:36:34 +0100 Message-ID: <20180311133634.GB904@thebird.nl> References: <87y3j4l3xj.fsf@mdc-berlin.de> <20180310083421.GA26219@thebird.nl> <87ina2uaum.fsf@elephly.net> <20180311124239.GA811@thebird.nl> <31197f9d-d4bd-da29-3b08-867c73499100@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ev1DR-00008T-Oj for guix-devel@gnu.org; Sun, 11 Mar 2018 09:40:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ev1DO-0002ts-Jp for guix-devel@gnu.org; Sun, 11 Mar 2018 09:40:45 -0400 Received: from mail.thebird.nl ([95.154.246.10]:41333) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ev1DO-0002tM-DB for guix-devel@gnu.org; Sun, 11 Mar 2018 09:40:42 -0400 Content-Disposition: inline In-Reply-To: <31197f9d-d4bd-da29-3b08-867c73499100@crazy-compilers.com> 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: Hartmut Goebel Cc: guix-devel@gnu.org On Sun, Mar 11, 2018 at 02:30:25PM +0100, Hartmut Goebel wrote: > As I've been told, it's worse in Ruby, since rube is using the same > gem-directories for all versions. That is not accurate. Ruby uses even 'stable' numbers of minor versions to split out. So 2.4.x and 2.6.x get installed in different lib site dirs. The assumption is that everything in between is compatible. If fact, very similar to what Python does. I think they are on par when it comes to that part of the solution. Ruby is arguably a bit better off because sources are compiled every time from source. Thim means that potential conflicts may be a bit likelier to be caught at runtime. > In contrast, python uses different (see above) and if you need to > pin specific package versions, virtual environments are for the > rescue and quite light-weight. I know. Still, it is not completely independent per *installation*. > Neverthelesse these are problems out of scope for guix :-) Actually the Python and Ruby mess is fixable using (1) Guix profiles and (2) including the hash in the local $HOME install path. That is what I do. That enforces perfect isolation between versions. No more pain after and no need for Ruby bundler or Python virtualenv. I have no use for those tools. Pj.