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 A082F1382C5 for ; Sat, 16 May 2020 03:33:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53E46E0966; Sat, 16 May 2020 03:33:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 B907CE091D for ; Sat, 16 May 2020 03:33:18 +0000 (UTC) Received: by mail-il1-f172.google.com with SMTP id j3so4514019ilk.11 for ; Fri, 15 May 2020 20:33:16 -0700 (PDT) X-Gm-Message-State: AOAM531ZPinzeCnjcWwFBj5yi19xsq1Y6jyUzsOiHNrg4ers3OALhJlY o9SzHaonqiDgAeP2z8Kv/EK7GHAfZw5flkt+zFo= X-Google-Smtp-Source: ABdhPJxxDaHO5NRjoPgVJIsFEmZw31XZ+erdijht4rmdj/W1xTTw+NgWOChWQ47x4dwC34n2Z9MET75udFhgU4YoGPQ= X-Received: by 2002:a05:6e02:4d1:: with SMTP id f17mr6013308ils.154.1589599994667; Fri, 15 May 2020 20:33:14 -0700 (PDT) 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 References: <48ef284c-a140-cd1d-d84e-35f97efbc1b5@iinet.net.au> <099652b2-5f2f-3130-a3d4-4d2b4902063f@gmail.com> In-Reply-To: From: Mike Gilbert Date: Fri, 15 May 2020 23:33:03 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [gentoo-user] How can I force emerge to use python 3.6? To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 151ba1c8-4a86-4e60-b05c-73234c5bd1e9 X-Archives-Hash: 2047077b271d6eb6af92432ac2c68ba3 On Fri, May 15, 2020 at 10:17 PM William Kenworthy wrote: > > Hi Victor, > > emerge crashes when it tries to add metadata during the merge stage > in an emerge installed python module using 3.7 when the PKGDIR is on a > moosefs share. When PKGDIR is local its fine. > > I am rebuilding some systems now with 3.6 as the PYTHON_SINGLE_TARGET > but I was hoping for some way to specify emerge use 3.7 or 3.6 without > having to rebuild portage and all its dependencies everytime I want to > switch and test ... Set PYTHON_TARGETS=pytthon3_6. This will ensure portage and its dependencies are built for python3.6. You can then set python3.6 as the default interpreter globally by putting it first in /etc/python-exec/python-exec.conf. There's a comment with instructions at the top of that file. If you only want emerge to use python3.6, put it in /etc/python-exec/emerge.conf instead.