Gentoo Archives: gentoo-user

From: Justin <justin@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mixing python-2 and python-3 howto
Date: Thu, 22 Apr 2010 15:03:22
Message-Id: 4BD05950.3030604@j-schmitz.net
In Reply to: [gentoo-user] mixing python-2 and python-3 howto by Helmut Jarausch
1 On 22/04/10 15:29, Helmut Jarausch wrote:
2 > Here,
3 >
4 > several month ago I had problems since I had Python-2.x and Python-3.x
5 > installed. Therefore I have masked Python-3.x since then.
6 > Meanwhile there are packages (like portpeek-2.0.1) which require
7 > Python-3.x . Is it safe to have both Python-2 and Python-3 installed.
8 > I know they are slotted and I know about eselect python but do I have to
9 > switch Python (by using eselect) before emerge a given packages.
10 > And does this work at all (a Gentoo system where different parts use
11 > different versions of Python)?
12 >
13 > Many thanks for sharing your experience,
14 > Helmut.
15 >
16
17 Currently there is only python version <3 supported as system python. So
18 you *never* eselect python 3. But there is no problem installing slotted
19 python versions side by side. There are currently to versions of
20 packages, those which support installation of multiple python ABIs. They
21 will install supporting modules for all available ABIs. And those which
22 support just a single version, they will install as normal and fix the
23 shebang to the highest supported version.
24 So in you case, just emerge python-3, but leave the system python to py-2.*.
25 There will be an announcement, when py-3.* goes stable and is supported
26 to be used as system python.
27
28 justin

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] mixing python-2 and python-3 howto "Albert W. Hopkins" <marduk@×××××××××××.org>