Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Looking for a solution to the distutils/setuptools .egg-info mess
Date: Mon, 10 Jan 2022 14:43:40
Message-Id: 40fc24ef56674241e67b78561fdbfb090e508f49.camel@gentoo.org
In Reply to: [gentoo-dev] Looking for a solution to the distutils/setuptools .egg-info mess by "Michał Górny"
1 On Mon, 2022-01-10 at 06:39 +0100, Michał Górny wrote:
2 > 4. We could have the eclasses switch to "local" model and rename
3 > the .egg-info files somehow at some point. The main question is "rename
4 > how?"
5 >
6
7 If anyone's interested, I've published a proof-of-concept for this:
8
9 https://github.com/gentoo/gentoo/pull/23721
10
11 Long story short, the eclass detects if vendored distutils are being
12 used and renames the directories from .egg-info to .g.egg-info then.
13 This basically means the tag changes from e.g. "py3.8" to "py3.8.g".
14 I'm testing this approach now and it doesn't seem to break anything.
15
16 --
17 Best regards,
18 Michał Górny

Replies