From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-dev+bounces-96412-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EFEFF158011 for <garchives@archives.gentoo.org>; Tue, 11 Jan 2022 01:19:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7B0F02BC028; Tue, 11 Jan 2022 01:19:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A0C972BC021 for <gentoo-dev@lists.gentoo.org>; Tue, 11 Jan 2022 01:19:30 +0000 (UTC) Received: by mail-yb1-f170.google.com with SMTP id 127so26797351ybb.4 for <gentoo-dev@lists.gentoo.org>; Mon, 10 Jan 2022 17:19:29 -0800 (PST) X-Gm-Message-State: AOAM533JKY7nvkC4tj5l2DlWRUJ7EdelQa3KGrNOrugT+X6kD23GKJhv vBeYbFecK7PhUTY8eFKiaO/NdGulg1fiJ6T+QeY= X-Google-Smtp-Source: ABdhPJz1JAOCeDQ7sJD5nPWrQc4Rg9hbPd+Ki9k9kkSVBe2WjCl4Gj952r3ZkUIHO7eEBwH3bPPpgxq++oM3AF6Dlvw= X-Received: by 2002:a25:1381:: with SMTP id 123mr3202817ybt.168.1641863967358; Mon, 10 Jan 2022 17:19:27 -0800 (PST) Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> 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 References: <908ab66e71703930054cdbfd1cf63eb888ea35e2.camel@gentoo.org> <40fc24ef56674241e67b78561fdbfb090e508f49.camel@gentoo.org> In-Reply-To: <40fc24ef56674241e67b78561fdbfb090e508f49.camel@gentoo.org> From: Mike Gilbert <floppym@gentoo.org> Date: Mon, 10 Jan 2022 20:19:16 -0500 X-Gmail-Original-Message-ID: <CAJ0EP42Z2=ykf3QWp+qJc_EQfZhSsugchafFhxZBLF_iGBYzLQ@mail.gmail.com> Message-ID: <CAJ0EP42Z2=ykf3QWp+qJc_EQfZhSsugchafFhxZBLF_iGBYzLQ@mail.gmail.com> Subject: Re: [gentoo-dev] Looking for a solution to the distutils/setuptools .egg-info mess To: Gentoo Dev <gentoo-dev@lists.gentoo.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 3542b63a-743b-42c6-be73-503dbe297ca7 X-Archives-Hash: fe96763ccd3a194c53b1a99f93780357 On Mon, Jan 10, 2022 at 9:43 AM Micha=C5=82 G=C3=B3rny <mgorny@gentoo.org> = wrote: > > On Mon, 2022-01-10 at 06:39 +0100, Micha=C5=82 G=C3=B3rny wrote: > > 4. We could have the eclasses switch to "local" model and rename > > the .egg-info files somehow at some point. The main question is "renam= e > > how?" > > > > If anyone's interested, I've published a proof-of-concept for this: > > https://github.com/gentoo/gentoo/pull/23721 > > Long story short, the eclass detects if vendored distutils are being > used and renames the directories from .egg-info to .g.egg-info then. > This basically means the tag changes from e.g. "py3.8" to "py3.8.g". > I'm testing this approach now and it doesn't seem to break anything. A possible alternative would be to define pkg_preinst in the eclass and have it move the .egg-info file out of the way before portage tries to replace it with a directory. That would be a significant API change for distutils-r1 though.