Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] eselect python cleanup
Date: Mon, 25 Mar 2019 10:45:33
Message-Id: 1605082.FEfaX5BMbK@dell_xps
In Reply to: Re: [gentoo-user] eselect python cleanup by Neil Bothwick
1 On Monday, 25 March 2019 09:04:16 GMT Neil Bothwick wrote:
2 > On Mon, 25 Mar 2019 08:50:09 +0000, Mick wrote:
3 > > In my system I also only have 2.7 and 3.6 installed:
4 > >
5 > > $ eselect python list
6 > >
7 > > Available Python interpreters, in order of preference:
8 > > [1] python3.6
9 > > [2] python2.7 (fallback)
10 > >
11 > > However, python-exec.conf only contains 3.6 ... from what you're saying
12 > > it should contain both? Or are they both present only if you have not
13 > > set up a python version with eselect? (I have set python3.6).
14 >
15 > I'm not saying what should be, only what mine is.
16 >
17 > % eselect python list
18 > Available Python interpreters, in order of preference:
19 > [1] python2.7
20 > [2] python3.6 (fallback)
21 >
22 > I set python2.7 as the default because some older python scripts are for
23 > python2 but don't specify the version in the shebang. I suspect you are
24 > right but you could try setting the default to 2.7 and then back to 3.6
25 > to see if that changes the file.
26
27 Yes, you right. I set 2.7 and both 2.7 & 3.6 are now stored in python-
28 exec.conf.
29 --
30 Regards,
31 Mick

Attachments

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