Re: [gentoo-user] python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.6

2021-01-19 Thread Walter Dnes
On Wed, Jan 20, 2021 at 12:33:19AM -0500, Ionen Wolkens wrote
> On Wed, Jan 20, 2021 at 12:20:44AM -0500, Walter Dnes wrote:
> > grep -v ^# /etc/python-exec/python-exec.conf
> > 
> > ...still shows 2 lines...
> > 
> > python3.8
> > python3.6
> > 
> > ...No change at all. Now what?  Should I manually edit
> > /etc/python-exec/python-exec.conf and remove "python3.6"?
> 
> It'd be fine but the proper way would be:
> 
> eselect python cleanup

  Thanks.  That worked...

[i3][root][~] eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.9 (fallback)

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.6

2021-01-19 Thread Ionen Wolkens
On Tue, Jan 19, 2021 at 11:45:02PM -0600, Matt Connell (Gmail) wrote:
> On Wed, 2021-01-20 at 00:33 -0500, Ionen Wolkens wrote:
> > It'd be fine but the proper way would be:
> > 
> > eselect python cleanup
> 
> I pair this with "eselect python update" to make sure that the latest
> version is selected.  I've had fewer random portage complaints that
> way.

Messing with eselect python may not be relevant for much longer.

'python-exec-conf' package was added in ~testing that generates an
appropriate python-exec.conf

This prevents a python that's not in TARGETS from automatically being
default, and old deprecated implementations from staying (assuming run
etc-update anyway, like for anything else).

So most people will probably depclean eselect-python as it's not really
needed unless you have some preference (like pypy3).

-- 
ionen


signature.asc
Description: PGP signature


Re: [gentoo-user] python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.6

2021-01-19 Thread Matt Connell (Gmail)
On Wed, 2021-01-20 at 00:33 -0500, Ionen Wolkens wrote:
> > Should I manually edit /etc/python-exec/python-exec.conf and remove 
> > "python3.6"?
> 
> It'd be fine but the proper way would be:
> 
> eselect python cleanup

I pair this with "eselect python update" to make sure that the latest
version is selected.  I've had fewer random portage complaints that
way.

YMMV




Re: [gentoo-user] python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.6

2021-01-19 Thread Ionen Wolkens
On Wed, Jan 20, 2021 at 12:20:44AM -0500, Walter Dnes wrote:
> grep -v ^# /etc/python-exec/python-exec.conf
> 
> ...still shows 2 lines...
> 
> python3.8
> python3.6
> 
> ...No change at all. Now what?  Should I manually edit
> /etc/python-exec/python-exec.conf and remove "python3.6"?

It'd be fine but the proper way would be:

eselect python cleanup

Hopefully this may no longer be needed in the future given a new setup
is being prepared in ~testing, but for now just cleanup :)

-- 
ionen


signature.asc
Description: PGP signature


[gentoo-user] python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.6

2021-01-19 Thread Walter Dnes
  I just did an update, and ran "etc-update".  I got...

=
[i3][root][~] etc-update 
python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.6
Scanning Configuration files...
Automerging trivial changes in: /etc/cups/cups-browsed.conf
Automerging trivial changes in: /etc/ssh/ssh_config
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/mke2fs.conf (1)
2) /etc/sudo.conf (1)
3) /etc/ImageMagick-7/policy.xml (1)
4) /etc/mc/filehighlight.ini (1)
5) /etc/mc/mc.default.keymap (1)
6) /etc/mc/mc.emacs.keymap (1)
7) /etc/mc/mc.ext (1)
8) /etc/ssh/moduli (1)
9) /etc/ssl/misc/tsget.pl (1)
Please select a file to edit by entering the corresponding number.
  (don't use -3, -5, -7 or -9 if you're unsure what to do)
  (-1 to exit) (-3 to auto merge all files)
   (-5 to auto-merge AND not use 'mv -i')
   (-7 to discard all updates)
   (-9 to discard all updates AND not use 'rm -i'):
=

  I selected "-5" and it worked. /etc/python-exec/python-exec.conf
consists of a bunch of comments, and 2 uncommented lines...

python3.8
python3.6

  The comments mention that...
# Note: this file can be modified by calls to 'eselect python'.
So I did...

==
[i3][root][~] eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.6 (uninstalled)
  [3]   python3.9 (fallback)

[i3][root][~] eselect python set 1

[i3][root][~] eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.6 (uninstalled)
  [3]   python3.9 (fallback)
==

grep -v ^# /etc/python-exec/python-exec.conf

...still shows 2 lines...

python3.8
python3.6

...No change at all. Now what?  Should I manually edit
/etc/python-exec/python-exec.conf and remove "python3.6"?

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications