Gentoo Archives: gentoo-dev

From: Philip Webb <purslow@××××××××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [News item review v4] Python preference to follow PYTHON_TARGETS
Date: Tue, 26 Jan 2021 06:39:25
Message-Id: YA+5Fre+CZ1O6uJJ@ca.inter.net
In Reply to: Re: [gentoo-dev] [News item review v4] Python preference to follow PYTHON_TARGETS by "Michał Górny"
1 210125 Michał Górny wrote:
2 > Changed eselect-python dep removal date to July 2021.
3 > Not sure if there's a reason to display it to stable users today,
4 > or delay until the stable request is actually filed.
5
6 I've been using Gentoo since 2003 , happily enough most of the time ;
7 I'm an ordinary desktop user without any special requirements.
8 Python versions have been one of the reasons for the exceptions.
9 I finally managed to remove 2.7 from my system yesterday.
10
11 I do appreciate your work in this area,
12 but I can make no sense of the news item below.
13
14 > Title: Python preference to follow PYTHON_TARGETS
15 > Author: Michał Górny <mgorny@g.o>
16 > Posted: 2021-01-24
17 > Revision: 1
18 > News-Item-Format: 2.0
19 >
20 > On 2021-02-01 stable users will switch to a new method of updating
21 > the preferred Python versions that employs the configuration update
22 > mechanism in order to follow PYTHON_TARGETS.
23
24 What are "preferred Python versions" ? Why are they multiple, not one ?
25 What is the "configuration update mechanism",
26 how does it "follow PYTHON_TARGETS" & why are they both needed ?
27
28 > We will also deprecate app-eselect/eselect-python,
29 > and it will stop being installed by default after 2021-07-01.
30
31 Why has there been this 3rd method of managing Python versions ?
32 Why might it still be needed by users ?
33
34 > If you wish to use the newest Python version present
35 > in your PYTHON_TARGETS, you only have to accept configuration changes.
36
37 Why doesn't Python behave like most other packages,
38 ie use the latest installed version ? Why does PYTHON_TARGETS exist ?
39 Why are the "targets" ? -- it sounds as if they may not be achieved.
40 What are the "configuration changes" ?
41 Do you mean those in /etc/python-exec ?
42
43 > If you wish to customize the behavior, read on.
44
45 I have no wish to customise Python. I don't use it to develop programs ;
46 it is installed only as a requirement for other packages, eg Portage.
47 I do use it for a small script to work as a CLI calculator.
48 Given this, I won't comment on the rest of the news item,
49 but it makes even less sense to me than the section above.
50
51 In /etc/portage/make.conf , I have
52
53 USE_PYTHON="2.7 3.5 3.6"
54 PYTHON_TARGETS="python3_7"
55 PYTHON_SINGLE_TARGET="python3_7"
56
57 'eselect python list' gives
58
59 Available Python interpreters, in order of preference:
60 [1] python3.7
61 [2] python3.6 (uninstalled)
62
63 /etc/python-exec/ contains 1 file 'python-exec.conf',
64 which says (besides many lines of comment) :
65
66 python3.7
67 python3.6
68
69 'eix python' shows
70
71 [I] dev-lang/python
72 Available versions:
73 (2.7) 2.7.18-r5 ~2.7.18-r6
74 (3.6) 3.6.12-r1(3.6/3.6m)^t ~3.6.12-r2(3.6/3.6m)^t
75 (3.7) 3.7.9-r1(3.7/3.7m)^t ~3.7.9-r2(3.7/3.7m)^t
76 (3.8) 3.8.6-r1^t ~3.8.7-r1^t
77 (3.9) 3.9.0-r1^t ~3.9.1-r1^t
78 (3.10) ~3.10.0_alpha3-r1^t ~3.10.0_alpha4^t
79 {-berkdb bluetooth build examples gdbm hardened ipv6 libressl +ncurses +readline sqlite +ssl test +threads tk verify-sig +wide-unicode wininst +xml ELIBC="uclibc"}
80 Installed versions: 3.7.9-r1(3.7/3.7m)^t([2021-01-24 23:26:15])(gdbm ncurses readline sqlite ssl tk xml -bluetooth -build -examples -hardened -ipv6 -libressl -test -wininst) 3.8.6-r1(3.8)^t([2021-01-24 23:28:48])(gdbm ncurses readline sqlite ssl tk xml -bluetooth -build -examples -hardened -ipv6 -libressl -test -wininst) 3.9.0-r1(3.9)^t([2021-01-24 23:31:53])(gdbm ncurses readline sqlite ssl tk xml -bluetooth -build -examples -hardened -ipv6 -libressl -test -wininst)
81
82 I can't understand why there are so many ways to control Python
83 nor which one users are supposed to use nor how to reconcile them.
84 I would be very happy simply to use 3.9 for all Python purposes.
85
86 Thanks again for your hard work on this + other areas of Gentoo.
87
88 --
89 ========================,,============================================
90 SUPPORT ___________//___, Philip Webb
91 ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
92 TRANSIT `-O----------O---' purslowatcadotinterdotnet

Replies