From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 28EF21382C5 for ; Sun, 7 Mar 2021 19:30:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 651ABE0922; Sun, 7 Mar 2021 19:30:27 +0000 (UTC) Received: from mail-gw.thundermail.uk (mail-gw.thundermail.uk [149.255.60.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E45FAE0900 for ; Sun, 7 Mar 2021 19:30:26 +0000 (UTC) Received: from mailgw01.thundermail.uk (mail-gw.thundermail.uk [149.255.60.66]) by mail-gw.thundermail.uk (Postfix) with ESMTPS id EBF35606ACA9 for ; Sun, 7 Mar 2021 19:30:24 +0000 (GMT) X-ASG-Debug-ID: 1615145423-055413671ea0fd0001-LfjuLa Received: from cloud220.unlimitedwebhosting.co.uk (cloud220.unlimitedwebhosting.co.uk [149.255.60.183]) by mailgw01.thundermail.uk with ESMTP id djCj9ftP428eWE72 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 07 Mar 2021 19:30:23 +0000 (GMT) X-Barracuda-Envelope-From: confabulate@kintzios.com X-Barracuda-Effective-Source-IP: cloud220.unlimitedwebhosting.co.uk[149.255.60.183] X-Barracuda-Apparent-Source-IP: 149.255.60.183 Received: from lenovo.localdomain (230.3.169.217.in-addr.arpa [217.169.3.230]) by cloud220.unlimitedwebhosting.co.uk (Postfix) with ESMTPSA id D6D02C73D53 for ; Sun, 7 Mar 2021 19:30:21 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kintzios.com; s=default; t=1615145423; bh=IJrAx42vOaSxo7X9uTSDMKdzFVl9papw+Ev4CWoOFqU=; h=From:To:Subject; b=h/x/IBjkOqLQ4xlIgdbR9QfQOheVv42KHdmLOajhQWMl9A8Kx4sIxqeNj9+jpjZWn hmGCgZwOPxLsWdLV/PJNOqrKHaci+aDJgSLpha+8vAX5VditODHQreCdw3/YoH534Y JbrejhxjykMqrStQIEJ5/wQ6fzIuud3NHJaexbAM= From: Michael To: gentoo-user@lists.gentoo.org 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 19:30:21 +0000 X-ASG-Orig-Subj: Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml? Message-ID: <15839378.geO5KgaWL5@lenovo.localdomain> In-Reply-To: <20210307134329.10487844.lembark@wrkhors.com> References: <20210306143810.0d17b770.lembark@wrkhors.com> <14297865.tv2OnDr8pf@lenovo.localdomain> <20210307134329.10487844.lembark@wrkhors.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1649369.QkHrqEjB74"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <20210307193023.121763.75810@cloud220.unlimitedwebhosting.co.uk> X-PPP-Vhost: kintzios.com X-Barracuda-Connect: cloud220.unlimitedwebhosting.co.uk[149.255.60.183] X-Barracuda-Start-Time: 1615145423 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://149.255.60.66:443/cgi-mod/mark.cgi X-ASG-Orig-Subj: Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml? X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at thundermail.uk X-Barracuda-Scan-Msg-Size: 3499 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.9 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.88366 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: 9f5c4629-2b42-41d8-a9e9-98aed629f128 X-Archives-Hash: b72203cc33ec0837d897acd95250b9a5 --nextPart1649369.QkHrqEjB74 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Michael To: gentoo-user@lists.gentoo.org Reply-To: confabulate@kintzios.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 19:30:21 +0000 Message-ID: <15839378.geO5KgaWL5@lenovo.localdomain> In-Reply-To: <20210307134329.10487844.lembark@wrkhors.com> References: <20210306143810.0d17b770.lembark@wrkhors.com> <14297865.tv2OnDr8pf@lenovo.localdomain> <20210307134329.10487844.lembark@wrkhors.com> On Sunday, 7 March 2021 18:43:29 GMT Steven Lembark wrote: > Checking my environment, I'd expect that "python" is 3.9.1, I think? > > # which python > /usr/bin/python > > # ls -al /usr/bin/python > lrwxrwxrwx 1 root root 13 Oct 20 10:46 /usr/bin/python -> python-exec2c > > # /usr/bin/python --version; > Python 3.9.1 > > (ins)root@dizzy ~ # eselect python list; > Available Python interpreters, in order of preference: > [1] python3.9 > [2] python3.6 > [3] python3.8 (fallback) > [4] python3.7 (fallback) > [5] python2.7 (fallback) > > > Yet when I "emerge pyyaml" it seems to prefer 3.8 (see ? below): > > (cmd)root@dizzy ~ # emerge pyyaml > Calculating dependencies... done! > > >>> Verifying ebuild manifests > >>> > >>> Emerging (1 of 1) dev-python/pyyaml-5.4.1::gentoo > > * pyyaml-5.4.1.gh.tar.gz BLAKE2B SHA512 size ;-) ... > [ ok ] > >>> Unpacking source... > >>> Unpacking pyyaml-5.4.1.gh.tar.gz to > >>> /tmp/portage/dev-python/pyyaml-5.4.1/work Source unpacked in > >>> /tmp/portage/dev-python/pyyaml-5.4.1/work > >>> Preparing source in > >>> /tmp/portage/dev-python/pyyaml-5.4.1/work/pyyaml-5.4.1 ... > * Applying pyyaml-5.1-cve-2017-18342.patch ... > [ ok ] > >>> Source prepared. > >>> Configuring source in > >>> /tmp/portage/dev-python/pyyaml-5.4.1/work/pyyaml-5.4.1 ... > ? * Using python3.8 in global scope > ? * python3_8: running distutils-r1_run_phase python_configure_all > > >>> Source configured. > > ^C > > Exiting on signal 2 > > >>> Compiling source in > >>> /tmp/portage/dev-python/pyyaml-5.4.1/work/pyyaml-5.4.1 ... > ^Csandbox:stop caught signal 2 in pid 8217 > Sandboxed process killed by signal: Interrupt > * The ebuild phase 'die_hooks' has been killed by signal 2. > > * Messages for package dev-python/pyyaml-5.4.1: > * Log file: > /var/log/portage/dev-python:pyyaml-5.4.1:20210307-183833.log > > Q: Is it reasonable to simply remove everything other than 3.9 and > some version of 2.7? > > Trying to build 3.9 for one of my co-workers was hell, we ended up > using 3.8. Would it make more sense to remove 3.9? > > Not entirely sure why I have so many versions of python left behind > by upgrades. Have you tried: eselect python cleanup emerge --depclean -v -p emerge @preserved-rebuild -v -a I don't have any python targets specified and on a (mostly) stable system I get: $ /usr/bin/python --version Python 3.8.7 $ eselect python list Available Python interpreters, in order of preference: [1] python3.8 [2] python3.9 (fallback) $ ls -al /usr/bin/python lrwxrwxrwx 1 root root 13 Feb 13 09:04 /usr/bin/python -> python-exec2c $ emerge -1Dvp pyyaml These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] dev-python/pyyaml-5.4.1::gentoo USE="libyaml -examples - test" PYTHON_TARGETS="python3_8 (-pypy3) -python3_7 -python3_9" 170 KiB Total: 1 package (1 new), Size of downloads: 170 KiB It would use PYTHON_TARGETS="python3_8" which is the default on this system, since I have not modified my python settings. --nextPart1649369.QkHrqEjB74 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmBFKc0ACgkQseqq9sKV Zxmh1xAAiQt3u8gJlrHbZ6BSQr4bkZePqmHdQeNeHVXrVPwFghS+G8GY5rZvtaWC y48VBSG+AjPGLvp3NjdqDC/mj4OmdUGh0apqd9dO+o+E1160gBwo/29ELRMsJmJa j2V68g9SmyM94o0KZHlnQ6A6GPMlz77F0GwTVkOTJiLXRz3WrDW98pvoMKX6ZRBs QRymWRxOxoH+Ir2Gbmd48I452gXrRWZArrDDT5sATAFr4cM7S8QMD1JbgRot0QjJ i75hn4/eDAGQRxz/Gl0t2B6DD7nBO2Ewe61/eLBCjaLQE4mizdf5TJG5U2cVFUJd P9v5AHJRm0qZTQCAJS9FZGwwaLtHKNoryIRczrQwBcRqkFZdiPXhtxOwgmG7N2jg bAAV49DStzvTrLkmabFotRk88420axLE+Lx/EXh2KbPZ9185DRq97uLN3wqEddCo In1MAlztJ15s1PHT3jd4cAta/z5jTFgj3/clh/8McZSwQjZgH6yNdOEq68m26irC 1i1Eoib6zYfjtPqSN9D0L5OE2/Vk9KeQAYwC3Tr8e/bN9AOM92qt2wQEp0v1qi/F d4Gnow/9/4qc8vG1aqLsbuW4pNqluAkqLK2/RQW3tPeraO0zyTfFlGOEJBpn11nL c95CGeTeFykhFX7gvk+K/IXW2A0SoIedW29YL6pabAswPSdTJz4= =erTL -----END PGP SIGNATURE----- --nextPart1649369.QkHrqEjB74--