commit:     9170bba7020993928fb8cf38dc45ec9de0e6d924
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  2 09:18:43 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb  2 09:26:56 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9170bba7

dev-python/tomlkit: Force setuptools build to fix poetry dep cycle

Closes: https://bugs.gentoo.org/832531
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../tomlkit/{tomlkit-0.9.0.ebuild => tomlkit-0.9.0-r1.ebuild} | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/dev-python/tomlkit/tomlkit-0.9.0.ebuild 
b/dev-python/tomlkit/tomlkit-0.9.0-r1.ebuild
similarity index 68%
rename from dev-python/tomlkit/tomlkit-0.9.0.ebuild
rename to dev-python/tomlkit/tomlkit-0.9.0-r1.ebuild
index 7ec87f0790cf..4de45e362c79 100644
--- a/dev-python/tomlkit/tomlkit-0.9.0.ebuild
+++ b/dev-python/tomlkit/tomlkit-0.9.0-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-DISTUTILS_USE_PEP517=poetry
+DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( pypy3 python3_{8..10} )
 
 inherit distutils-r1
@@ -19,3 +19,12 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips 
~ppc ~ppc64 ~riscv ~
 BDEPEND="test? ( dev-python/pyyaml[${PYTHON_USEDEP}] )"
 
 distutils_enable_tests pytest
+
+src_configure() {
+       # use setup.py to avoid circular dep with poetry-core
+       cat > pyproject.toml <<-EOF || die
+               [build-system]
+               requires = ["setuptools", "wheel"]
+               build-backend = "setuptools.build_meta"
+       EOF
+}

Reply via email to