File "/usr/lib/python3.9/site-packages/DistUtilsExtra/command/build_extra.py", line 57, in finalize_options distutils.command.build.build.finalize_options(self) File "/usr/lib/python3.9/site-packages/setuptools_rust/setuptools_ext.py", line 264, in finalize_options super().finalize_options() TypeError: super(type, obj): obj must be an instance or subtype of type * ERROR: dev-python/cryptography-36.0.2::gentoo failed (compile phase): * (no error message) ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma_systemd-j4-20220420-172429 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.3.0 * clang/llvm (if any): clang version 14.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/14/bin /usr/lib/llvm/14 14.0.1 Python 3.9.12 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby27 (with Rubygems) [3] ruby31 (with Rubygems) * Available Rust versions: [1] rust-1.60.0 * The following VMs are available for generation-2: 1) Eclipse Temurin JRE 11.0.14_p9 [openjdk-jre-bin-11] Available Java Virtual Machines: [1] openjdk-jre-bin-11 The Glorious Glasgow Haskell Compilation System, version 8.10.4 php cli: HEAD of ::gentoo commit 13e510169a6fb7db8be0fdea75b7636e11f8f4ce Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Thu Apr 21 23:19:22 2022 +0000 2022-04-21 23:19:22 UTC emerge -qpvO dev-python/cryptography [ebuild U ] dev-python/cryptography-36.0.2 [3.4.7-r3] USE="-debug% -test" PYTHON_TARGETS="python3_9 -pypy3 -python3_8 -python3_10"
Created attachment 772892 [details] emerge-info.txt
Created attachment 772895 [details] dev-python:cryptography-36.0.2:20220421-234851.log
Created attachment 772898 [details] emerge-history.txt
Created attachment 772901 [details] environment
Created attachment 772904 [details] etc.portage.tar.bz2
Created attachment 772907 [details] temp.tar.bz2
Well, it's obviously caused by both setuptools-rust and python-distutils-extra being installed -- but I have no clue whether it's a bug in either, or in general problem with plugin stacking in setuptools.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ac56d95f192eeb0ec1d2d094cf6b937d90d10a1 commit 6ac56d95f192eeb0ec1d2d094cf6b937d90d10a1 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2022-04-22 15:23:43 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2022-04-22 15:28:07 +0000 dev-python/setuptools-rust: Add a blocker on python-distutils-extra Bug: https://bugs.gentoo.org/840122 Bug: https://github.com/PyO3/setuptools-rust/issues/221 Signed-off-by: Michał Górny <mgorny@gentoo.org> ...setuptools-rust-1.2.0.ebuild => setuptools-rust-1.2.0-r1.ebuild} | 6 ++++++ 1 file changed, 6 insertions(+)
(In reply to Larry the Git Cow from comment #8) > > dev-python/setuptools-rust: Add a blocker on python-distutils-extra This change now causes this error: (dev-python/python-distutils-extra-2.45:0/0::gentoo, installed) pulled in by dev-python/python-distutils-extra[python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] (dev-python/python-distutils-extra[python_targets_python3_9(-)]) required by (app-text/pdfarranger-1.8.2:0/0::gentoo, installed) USE="" ABI_X86="(64)" PYTHON_TARGETS="python3_9 -python3_10 -python3_8" (dev-python/setuptools-rust-1.2.0-r1:0/0::gentoo, ebuild scheduled for merge) pulled in by dev-python/setuptools-rust[python_targets_pypy3(-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,python_targets_python3_10(-)?] (dev-python/setuptools-rust[python_targets_python3_9(-)]) required by (dev-python/cryptography-36.0.2:0/0::gentoo, ebuild scheduled for merge) USE="-debug -test" ABI_X86="(64)" PYTHON_TARGETS="python3_9 -pypy3 -python3_10 -python3_8"
(In reply to Techwolf from comment #9) > (In reply to Larry the Git Cow from comment #8) > > > > dev-python/setuptools-rust: Add a blocker on python-distutils-extra > > This change now causes this error: > > > (dev-python/python-distutils-extra-2.45:0/0::gentoo, installed) pulled in > by > > dev-python/python-distutils-extra[python_targets_python3_8(-)?, > python_targets_python3_9(-)?,python_targets_python3_10(-)?] > (dev-python/python-distutils-extra[python_targets_python3_9(-)]) required by > (app-text/pdfarranger-1.8.2:0/0::gentoo, installed) USE="" ABI_X86="(64)" > PYTHON_TARGETS="python3_9 -python3_10 -python3_8" > > (dev-python/setuptools-rust-1.2.0-r1:0/0::gentoo, ebuild scheduled for > merge) pulled in by > > dev-python/setuptools-rust[python_targets_pypy3(-)?, > python_targets_python3_8(-)?,python_targets_python3_9(-)?, > python_targets_python3_10(-)?] > (dev-python/setuptools-rust[python_targets_python3_9(-)]) required by > (dev-python/cryptography-36.0.2:0/0::gentoo, ebuild scheduled for merge) > USE="-debug -test" ABI_X86="(64)" PYTHON_TARGETS="python3_9 -pypy3 > -python3_10 -python3_8" It would, it's not avoidable per se for now.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fe8429491f99dfecb0cf195e2f96f6ae07aac1a commit 5fe8429491f99dfecb0cf195e2f96f6ae07aac1a Author: Sam James <sam@gentoo.org> AuthorDate: 2022-04-24 15:53:23 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-04-24 15:53:23 +0000 dev-python/setuptools-rust: fix build failure w/ python-distutils-extra Closes: https://bugs.gentoo.org/840122 Bug: https://github.com/PyO3/setuptools-rust/issues/221 Signed-off-by: Sam James <sam@gentoo.org> ...uptools-rust-1.2.0-fix-distutils-conflict.patch | 67 +++++++++ .../setuptools-rust-1.2.0-r2.ebuild | 158 +++++++++++++++++++++ 2 files changed, 225 insertions(+)