commit:     7ee905e7977814855fbde62728f7b8ffa19794d3
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Wed Jun  5 04:23:26 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun  6 00:44:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ee905e7

dev-python/pycxx: correctly depend on distutils for py3.12

It was removed from the stdlib, and now comes from setuptools. This
package cannot actually be built without it, which is problematic if you
don't yet have the rest of the python ecosystem built and hence no
sideloaded setuptools.

Fixes: f60a09dfb2c75c9f33b4890cf09d4b8963d25fd7
Bug: https://bugs.gentoo.org/929486
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/pycxx/pycxx-7.1.8.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-python/pycxx/pycxx-7.1.8.ebuild 
b/dev-python/pycxx/pycxx-7.1.8.ebuild
index 104eb10e7890..5f5d4e8b1a39 100644
--- a/dev-python/pycxx/pycxx-7.1.8.ebuild
+++ b/dev-python/pycxx/pycxx-7.1.8.ebuild
@@ -18,6 +18,12 @@ SLOT="0"
 KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos"
 IUSE="doc examples"
 
+BDEPEND="
+       $(python_gen_cond_dep '
+               dev-python/setuptools[${PYTHON_USEDEP}]
+       ' 3.12)
+"
+
 python_prepare_all() {
        # Without this, pysvn fails.
        # Src/Python3/cxxextensions.c: No such file or directory

Reply via email to