Gentoo Archives: gentoo-dev

From: Philip Webb <purslow@××××××××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Migrate away from python-2 or not
Date: Sun, 24 Nov 2019 18:13:57
Message-Id: 20191124181350.GD10281@ca.inter.net
In Reply to: [gentoo-dev] Migrate away from python-2 or not by Benda Xu
1 191124 Benda Xu wrote:
2 > Bug 684962 (dev-python/ipython-7.5.0: package conflicts) has demonstrated
3 > a painful consequence when upstream start to release python3 only versions.
4 > Upstream has dropped python-2.7 support in dev-python/ipython-7.5.0,
5 > thus there is no python_targets_python2_7 USE flag for the ebuild.
6 > dev-python/qtconsole, a dependant of dev-python/ipython,
7 > still supports python-2.7. When qtconsole get emerged
8 > with USE="python_targets_python2_7 python_targets_python3_6" for example,
9 > old dev-python/ipython-5.8.0-r1 is drawn, resulting in conflict
10 > against dev-python/ipython-7.5.0. USE=python_targets_python2_7
11 > had to be removed from dev-python/qtconsole to avoid it.
12 > If one package drops python-2.7, all its dependants
13 > have to drop python-2.7 even if they can work with python-2.7.
14 > Given the python-2 countdown deadline being 2020-01-01, a month away,
15 > shall we get rid of python-2?
16
17 As a user, I wb delighted to see the end of it.
18 It's a constant hindrance when updating some pkgs.
19
20 > If the answer is yes,
21 > we will need to decide on the following python-2-only packages.
22 >
23 > ,----
24 > | $ comm -23 <(equery -qC h python_targets_python2_7 | sort ) <(equery -qC h python_targets_python3_6 | sort)
25 > | dev-lang/yasm-1.3.0
26 > | dev-libs/libxslt-1.1.33-r1
27 > | dev-python/backports-functools-lru-cache-1.5
28 > | dev-python/enum34-1.1.6-r1
29 > | dev-python/functools32-3.2.3
30 > | dev-python/futures-3.2.0
31 > | dev-python/pygobject-2.28.6-r55
32 > | dev-python/pygtk-2.24.0-r4
33 > | dev-python/subprocess32-3.2.7
34 > | dev-util/boost-build-1.70.0
35 > | dev-vcs/subversion-1.12.2
36 > | gnome-base/libglade-2.6.4-r2
37 > | net-analyzer/nmap-7.70
38 > | sys-devel/clang-8.0.1
39 > | x11-wm/xpra-2.4.3
40 > `----
41
42 On my system, I get
43
44 root:588 portage> emerge -cpv python:2.7
45
46 Calculating dependencies... done!
47 dev-lang/python-2.7.15 pulled in by:
48 dev-lang/spidermonkey-60.5.2_p0-r2 requires >=dev-lang/python-2.7.5-r2:2.7[ncurses,sqlite,ssl,threads]
49 dev-qt/qtwebkit-5.212.0_pre20190629 requires >=dev-lang/python-2.7.5-r2:2.7
50 net-libs/nodejs-8.12.0 requires >=dev-lang/python-2.7.5-r2:2.7[threads]
51 net-mail/fetchmail-6.3.26-r4 requires >=dev-lang/python-2.7.5-r2:2.7[tk]
52 sys-devel/clang-8.0.1 requires >=dev-lang/python-2.7.5-r2:2.7
53 sys-devel/llvm-8.0.1 requires >=dev-lang/python-2.7.5-r2:2.7
54 www-client/firefox-68.2.0 requires dev-lang/python:2.7[ncurses,sqlite,ssl,threads(+)]
55
56 Is there eg an easy replacement for Fetchmail ?
57 Is there an easy way to avoid the other requirements ?
58
59 > If the answer is no, to avoid holding back new versions having only python3,
60 > such as bug 671796 for dev-python/matplotlib bump,
61 > old versions with python_targets_python2_7 and new versions without
62 > should be co-installable into different SLOTs.
63
64 --
65 ========================,,============================================
66 SUPPORT ___________//___, Philip Webb
67 ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
68 TRANSIT `-O----------O---' purslowatchassdotutorontodotca