Created attachment 768544 [details] build.log-emerge-info.txt Reporting on behalf of Zorry because I could reproduce the same error line (unsure if conditions are the same). On a ~arch system with only PYTHON_TARGETS="python3_9" for @world (aka no 3_8 deps, and 3_9-only =setuptools-61.3.1): fails: PYTHON_TARGETS="python3_8 python3_9 python3_10" emerge -1 =setuptools-61.3.1 works: PYTHON_TARGETS="python3_9 python3_10" emerge -1 =setuptools-61.3.1 works by doing 60 first then 61: PYTHON_TARGETS="python3_8 python3_9 python3_10" emerge -1 =setuptools-60.10.0 PYTHON_TARGETS="python3_8 python3_9 python3_10" emerge -1 =setuptools-61.3.1 Possibly(?) a 3_8-only dep that doesn't get pulled and 61.3.1 needs to emerge, have dug further into this. --- running install_egg_info Writing build/bdist.linux-x86_64/wheel/setuptools-61.3.1-py3.8.egg-info running install_scripts running build_scripts error: cannot copy tree 'build/scripts-3.8': not a directory * ERROR: dev-python/setuptools-61.3.1::gentoo failed (compile phase): * Wheel build failed
I've just tried in my bootstrap test env and couldn't reproduce. Though, 3.10 is added to 3.9 there, not 3.8.
(In reply to Michał Górny from comment #1) > I've just tried in my bootstrap test env and couldn't reproduce. Though, > 3.10 is added to 3.9 there, not 3.8. Yes, as noted it works fine when adding 3.10, this is only with 3.8. Maybe $URL is related, not that it says much and is semi-old.
Created attachment 768566 [details] emerge info Works fine if i remove python 3.8 from PYTHON_TARGET
Ah, sorry, missed that part. Now that's curious. For some reason it seems that it's hitting a different code path if (python3.8 AND not installed).
Ok, I'm wrong. It happens while bootstrapping any implementation.
Ok, I think the problem is that setuptools relies on entry points to set up its own command overrides. Before setuptools are installed, these entry points are not present, so it's running vanilla install_scripts from distutils (stdlib or its own bundled copy of distutils) which apparently doesn't work correctly.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80142fd93b275ffe2a45cc94438d17d75f1f1425 commit 80142fd93b275ffe2a45cc94438d17d75f1f1425 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2022-04-03 19:26:00 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2022-04-03 20:20:20 +0000 dev-python/setuptools: Switch back to pypi sdist to fix bootstrap Closes: https://bugs.gentoo.org/836670 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/setuptools/Manifest | 2 +- .../{setuptools-61.3.1.ebuild => setuptools-61.3.1-r1.ebuild} | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)