This package does not support Python 3.12. Please test it with Python 3.12 as a matter of urgency as the default will change in early June, as per message on gentoo-dev: https://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg99104.html. Please check the information provided in the tracker. Ask in #gentoo-python on IRC if need any help.
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81c29e448f7a39f61d04035f087f00c73e92bdfd
A user reports: ``` [31mFAILED: [0mapps/build/timestamp /var/tmp/portage/media-libs/lensfun-0.3.4-r1/work/lensfun-0.3.4_build/apps/build/timestamp cd /var/tmp/portage/media-libs/lensfun-0.3.4-r1/work/lensfun-0.3.4_build/apps && /usr/bin/python3.12 /var/tmp/portage/media-libs/lensfun-0.3.4-r1/work/lensfun-0.3.4_build/apps/setup.py build && /usr/bin/cmake -E touch /var/tmp/portage/media-libs/lensfun-0.3.4-r1/work/lensfun-0.3.4_build/apps/build/timestamp Traceback (most recent call last): File "/var/tmp/portage/media-libs/lensfun-0.3.4-r1/work/lensfun-0.3.4_build/apps/setup.py", line 6, in <module> from setuptools import setup ModuleNotFoundError: No module named 'setuptools' ``` Given I've dealt with the Python handing in lensfun before, I suggest we just depend on setuptools (for py3.12 but I've just been doing it unconditionally).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aceec3688def2d285075857c66f0765fa06f33e0 commit aceec3688def2d285075857c66f0765fa06f33e0 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-06-10 23:45:26 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-06-10 23:46:10 +0000 media-libs/lensfun: bdepend on setuptools for distutils The Python handling here is a mess and the state of master is quite different, so just depend on setuptools for distutils here (not going to bother conditionalising it to py3.12, I don't see much point). Closes: https://bugs.gentoo.org/929638 Signed-off-by: Sam James <sam@gentoo.org> media-libs/lensfun/lensfun-0.3.4-r1.ebuild | 3 +++ 1 file changed, 3 insertions(+)