diff --git a/sys-apps/dtc/dtc-1.7.2.ebuild b/sys-apps/dtc/dtc-1.7.2.ebuild index 8b7d21eaaa1cd..6e62aa6228510 100644 --- a/sys-apps/dtc/dtc-1.7.2.ebuild +++ b/sys-apps/dtc/dtc-1.7.2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit meson python-single-r1 if [[ ${PV} == 9999 ]] ; then @@ -27,7 +27,12 @@ BDEPEND=" app-alternatives/yacc app-alternatives/lex virtual/pkgconfig - python? ( dev-lang/swig ) + python? ( + dev-lang/swig + $(python_gen_cond_dep ' + dev-python/setuptools[${PYTHON_USEDEP}] + ') + ) " RDEPEND=" python? ( ${PYTHON_DEPS} ) diff --git a/sys-apps/dtc/dtc-9999.ebuild b/sys-apps/dtc/dtc-9999.ebuild index 27573a1226362..6e62aa6228510 100644 --- a/sys-apps/dtc/dtc-9999.ebuild +++ b/sys-apps/dtc/dtc-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit meson python-single-r1 if [[ ${PV} == 9999 ]] ; then @@ -27,7 +27,12 @@ BDEPEND=" app-alternatives/yacc app-alternatives/lex virtual/pkgconfig - python? ( dev-lang/swig ) + python? ( + dev-lang/swig + $(python_gen_cond_dep ' + dev-python/setuptools[${PYTHON_USEDEP}] + ') + ) " RDEPEND=" python? ( ${PYTHON_DEPS} )