Gentoo Archives: gentoo-user

From: Steven Lembark <lembark@×××××××.com>
To: gentoo-user@l.g.o
Cc: lembark@×××××××.com
Subject: Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?
Date: Sun, 07 Mar 2021 18:43:35
Message-Id: 20210307134329.10487844.lembark@wrkhors.com
In Reply to: Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml? by Michael
1 Checking my environment, I'd expect that "python" is 3.9.1, I think?
2
3 # which python
4 /usr/bin/python
5
6 # ls -al /usr/bin/python
7 lrwxrwxrwx 1 root root 13 Oct 20 10:46 /usr/bin/python -> python-exec2c
8
9 # /usr/bin/python --version;
10 Python 3.9.1
11
12 (ins)root@dizzy ~ # eselect python list;
13 Available Python interpreters, in order of preference:
14 [1] python3.9
15 [2] python3.6
16 [3] python3.8 (fallback)
17 [4] python3.7 (fallback)
18 [5] python2.7 (fallback)
19
20
21 Yet when I "emerge pyyaml" it seems to prefer 3.8 (see ? below):
22
23 (cmd)root@dizzy ~ # emerge pyyaml
24 Calculating dependencies... done!
25
26 >>> Verifying ebuild manifests
27
28 >>> Emerging (1 of 1) dev-python/pyyaml-5.4.1::gentoo
29 * pyyaml-5.4.1.gh.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ]
30 >>> Unpacking source...
31 >>> Unpacking pyyaml-5.4.1.gh.tar.gz to /tmp/portage/dev-python/pyyaml-5.4.1/work
32 >>> Source unpacked in /tmp/portage/dev-python/pyyaml-5.4.1/work
33 >>> Preparing source in /tmp/portage/dev-python/pyyaml-5.4.1/work/pyyaml-5.4.1 ...
34 * Applying pyyaml-5.1-cve-2017-18342.patch ... [ ok ]
35 >>> Source prepared.
36 >>> Configuring source in /tmp/portage/dev-python/pyyaml-5.4.1/work/pyyaml-5.4.1 ...
37 ? * Using python3.8 in global scope
38 ? * python3_8: running distutils-r1_run_phase python_configure_all
39 >>> Source configured.
40 ^C
41
42 Exiting on signal 2
43 >>> Compiling source in /tmp/portage/dev-python/pyyaml-5.4.1/work/pyyaml-5.4.1 ...
44 ^Csandbox:stop caught signal 2 in pid 8217
45 Sandboxed process killed by signal: Interrupt
46 * The ebuild phase 'die_hooks' has been killed by signal 2.
47
48 * Messages for package dev-python/pyyaml-5.4.1:
49 * Log file: /var/log/portage/dev-python:pyyaml-5.4.1:20210307-183833.log
50
51 Q: Is it reasonable to simply remove everything other than 3.9 and
52 some version of 2.7?
53
54 Trying to build 3.9 for one of my co-workers was hell, we ended up
55 using 3.8. Would it make more sense to remove 3.9?
56
57 Not entirely sure why I have so many versions of python left behind
58 by upgrades.
59
60 --
61 Steven Lembark
62 Workhorse Computing
63 lembark@×××××××.com
64 +1 888 359 3508

Replies