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 ED8981382C5 for ; Sun, 7 Mar 2021 18:43:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53556E08FF; Sun, 7 Mar 2021 18:43:31 +0000 (UTC) Received: from mta2.recol.net (mta2.recol.net [64.207.103.7]) (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 0B5F7E08E8 for ; Sun, 7 Mar 2021 18:43:30 +0000 (UTC) Received: from wrkhors.com (c-73-154-246-108.hsd1.pa.comcast.net [73.154.246.108]) by mta2.recol.net (Postfix) with ESMTPSA id 5EFD639968C; Sun, 7 Mar 2021 13:43:30 -0500 (EST) Date: Sun, 7 Mar 2021 13:43:29 -0500 From: Steven Lembark To: gentoo-user@lists.gentoo.org Cc: lembark@wrkhors.com Subject: Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml? Message-ID: <20210307134329.10487844.lembark@wrkhors.com> In-Reply-To: <14297865.tv2OnDr8pf@lenovo.localdomain> References: <20210306143810.0d17b770.lembark@wrkhors.com> <20210307110016.09c64f5a.lembark@wrkhors.com> <14297865.tv2OnDr8pf@lenovo.localdomain> Organization: Workhorse Computing X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-Workhorse: Quite 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: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 21dfc51a-349a-4a65-952d-98c5611a8b93 X-Archives-Hash: 2e8f2fec66796b79b421b7436b748928 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. -- Steven Lembark Workhorse Computing lembark@wrkhors.com +1 888 359 3508