Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836670 - dev-python/setuptools-61.3.1: can fail with python3_8 (error: cannot copy tree 'build/scripts-3.8': not a directory)
Summary: dev-python/setuptools-61.3.1: can fail with python3_8 (error: cannot copy tre...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-03 00:59 UTC by Ionen Wolkens
Modified: 2022-04-03 20:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log-emerge-info.txt (build.log-emerge-info.txt,34.26 KB, text/plain)
2022-04-03 00:59 UTC, Ionen Wolkens
Details
emerge info (emerge--info.text,5.50 KB, text/plain)
2022-04-03 09:45 UTC, Magnus Granberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ionen Wolkens gentoo-dev 2022-04-03 00:59:45 UTC
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
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-04-03 07:35:20 UTC
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.
Comment 2 Ionen Wolkens gentoo-dev 2022-04-03 08:43:18 UTC
(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.
Comment 3 Magnus Granberg gentoo-dev 2022-04-03 09:45:12 UTC
Created attachment 768566 [details]
emerge info

Works fine if i remove python 3.8 from PYTHON_TARGET
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-04-03 14:16:34 UTC
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).
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-04-03 14:25:02 UTC
Ok, I'm wrong.  It happens while bootstrapping any implementation.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-04-03 15:18:34 UTC
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.
Comment 7 Larry the Git Cow gentoo-dev 2022-04-03 20:20:23 UTC
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(-)