commit: 8df5f88e64001dfc3a9da37d9d9ab7ce72bb6717
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 13 17:40:15 2023 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 13 17:41:31 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8df5f88e
dev-python/tree-sitter: depend on setuptools for py3.12
Import distutils module on every load of the library, and works well
with setuptools "internal" distutils.
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
.../{tree-sitter-0.20.1.ebuild => tree-sitter-0.20.1-r1.ebuild} | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/dev-python/tree-sitter/tree-sitter-0.20.1.ebuild
b/dev-python/tree-sitter/tree-sitter-0.20.1-r1.ebuild
similarity index 91%
rename from dev-python/tree-sitter/tree-sitter-0.20.1.ebuild
rename to dev-python/tree-sitter/tree-sitter-0.20.1-r1.ebuild
index 8388598b62b2..f7fa52853dbd 100644
--- a/dev-python/tree-sitter/tree-sitter-0.20.1.ebuild
+++ b/dev-python/tree-sitter/tree-sitter-0.20.1-r1.ebuild
@@ -32,8 +32,12 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390
sparc x86 ~x64-macos"
-RDEPEND="dev-libs/tree-sitter:="
-DEPEND="${RDEPEND}"
+DEPEND="dev-libs/tree-sitter:="
+RDEPEND="${DEPEND}
+ $(python_gen_cond_dep '
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ ' 3.12)
+"
distutils_enable_tests unittest