commit: 6fb2dbd04266ab19ebe83a99b4e7c7c8907fdcf4 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Jun 10 12:43:12 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Jun 10 12:44:33 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fb2dbd0
dev-python/ipython: Force legacy setuptools backend Closes: https://bugs.gentoo.org/850916 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/ipython/ipython-8.2.0.ebuild | 4 ++++ dev-python/ipython/ipython-8.3.0-r1.ebuild | 4 ++++ dev-python/ipython/ipython-8.4.0.ebuild | 8 ++++++++ 3 files changed, 16 insertions(+) diff --git a/dev-python/ipython/ipython-8.2.0.ebuild b/dev-python/ipython/ipython-8.2.0.ebuild index 4d3f9a00ccde..91060ec26912 100644 --- a/dev-python/ipython/ipython-8.2.0.ebuild +++ b/dev-python/ipython/ipython-8.2.0.ebuild @@ -91,6 +91,10 @@ python_prepare_all() { # https://github.com/ipython/ipython/issues/12892 mv IPython/extensions/{,ipython_}tests || die + # remove pyproject.toml that specifies incorrect backend; since + # the package actually requires the legacy backend, force it implicitly + rm pyproject.toml || die + distutils-r1_python_prepare_all } diff --git a/dev-python/ipython/ipython-8.3.0-r1.ebuild b/dev-python/ipython/ipython-8.3.0-r1.ebuild index aaa7a7ae63a3..3a38a26f8d7a 100644 --- a/dev-python/ipython/ipython-8.3.0-r1.ebuild +++ b/dev-python/ipython/ipython-8.3.0-r1.ebuild @@ -89,6 +89,10 @@ python_prepare_all() { # https://github.com/ipython/ipython/issues/12892 mv IPython/extensions/{,ipython_}tests || die + # remove pyproject.toml that specifies incorrect backend; since + # the package actually requires the legacy backend, force it implicitly + rm pyproject.toml || die + distutils-r1_python_prepare_all } diff --git a/dev-python/ipython/ipython-8.4.0.ebuild b/dev-python/ipython/ipython-8.4.0.ebuild index bf72d46c9cb2..867a05be8b5c 100644 --- a/dev-python/ipython/ipython-8.4.0.ebuild +++ b/dev-python/ipython/ipython-8.4.0.ebuild @@ -89,6 +89,14 @@ python_prepare_all() { # https://github.com/ipython/ipython/issues/12892 mv IPython/extensions/{,ipython_}tests || die + if ! grep -q __legacy__ pyproject.toml; then + die "pyproject.toml changed, please recheck" + fi + + # remove pyproject.toml that specifies incorrect backend; since + # the package actually requires the legacy backend, force it implicitly + rm pyproject.toml || die + distutils-r1_python_prepare_all }
