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 EC5781382C5 for ; Sun, 24 Jan 2021 15:16:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4CEAE09DA; Sun, 24 Jan 2021 15:16:43 +0000 (UTC) Received: from mail.aisha.cc (mail.aisha.cc [108.61.81.40]) (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 94734E09D5 for ; Sun, 24 Jan 2021 15:16:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aisha.cc; s=excisionRSA; t=1611501400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2X3u1swOy7K2/LK01NNg8C8znyEDsroc/v2nsEPavSQ=; b=WHV2pUUQgq7AYlJu5ixDuALKgdKZM9tSoQ4XUcjp+hLoShGfp76lChfyCA40gzm6+XCelQ xZzTnnwKP3E8cWd3pX9GDsrbhLF6I4UMLZNDASO3RvWb0PjTzWLHg2BO/dx2MkMBUUc2Pd alzXgH7PEpoFwH0LTfjLKwNjiU5jSfwgh/bItOL7SmRCbK5gLSQ6AgIIvxauyOtbtyP9I/ Q7N8QeEmW8Aoh21Rzer423+CblLUBvvkuvNV7fVnUfcKGxgf5E9vwiOhvD+bWW/1B2+hay IWE10RQzdK+omyddf7lc0G6XyLQ8mVBLlJJwSeYmnf4buwkkS569JA8WYFJetg== Received: from [192.168.1.129] (c-73-215-141-174.hsd1.nj.comcast.net [73.215.141.174]) by mail.aisha.cc (OpenSMTPD) with ESMTPSA id 31cbd46b (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) auth=yes user=aisha@aisha.cc for ; Sun, 24 Jan 2021 10:16:39 -0500 (EST) To: gentoo-dev@lists.gentoo.org References: <2c4f440d9d368fd8b1aaed94e3cc992bfb987e8c.camel@gentoo.org> From: Aisha Tammy Subject: Re: [gentoo-dev] [News item review v2] Python preference to follow PYTHON_TARGETS Message-ID: Date: Sun, 24 Jan 2021 10:16:37 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Archives-Salt: e4224773-418b-49ce-b6d9-9ce83e464217 X-Archives-Hash: b91a2be7a45c0a8744ad8c98b09f103b On 1/24/21 7:59 AM, Michał Górny wrote: > Here's v2 with extra 'tl;dr' instructions in first para: > > ``` > Title: Python preference to follow PYTHON_TARGETS > Author: Michał Górny > Posted: 2021-01-24 > Revision: 1 > News-Item-Format: 2.0 > > On 2021-02-01 stable users will switch to a new method of updating > the preferred Python versions that employs the configuration update > mechanism in order to follow PYTHON_TARGETS. We will also deprecate > and stop installing app-eselect/eselect-python by default. If you wish > to use the newest Python version present in your PYTHON_TARGETS, you > only have to accept configuration changes. If you wish need > to customize the behavior, read on. > > Since 2017, /usr/bin/python and the related non-versioned symlinks > are wrapped through dev-lang/python-exec. The list of preferred Python > implementations is stored in /etc/python-exec/python-exec.conf and/or > per-program /etc/python-exec/.conf configuration files. > To preserve backwards compatibility, app-eselect/eselect-python remained > a wrapper that updated this file. > > However, this mechanism alone has proven inconvenient to end users who > had to update python-exec.conf whenever the default PYTHON_TARGETS > changed. Thanks to the fallback logic, this was not a major problem > for software installed via Gentoo packages that always ensure that > a supported implementation is used. However, users have reported that > whenever the preference for /usr/bin/python mismatched their > PYTHON_TARGETS, their custom scripts would break due to unsatisfied > dependencies. This does not follow the principle of least surprise. > > For this reason, we have decided to change the default python-exec > configuration to match PYTHON_TARGETS by default, in the eclass > preference order, that is from the newest CPython version to oldest, > with alternative Python implementations coming afterwards. This change > will be propagated via the configuration protection mechanism whenever > dev-lang/python-exec-conf is installed or rebuilt due to PYTHON_TARGETS > changes. This will permit the users to interactively confirm > the updates. > > If the new default is not correct for you, please use your preferred > configuration update tool to discard or edit the new configuration file. > > Furthermore, dev-lang/python will no longer attempt to automatically > update the Python interpreter preference, or pull in eselect-python > automatically. If you wish to continue using it, please install it > manually to ensure that it is not unmerged. > > ``` > Has this change already been pushed for unstable? I am running an unstable system but I still have eselect-python, so I assume not (unless due to my side error). Thanks, Aisha