From 6fb2dbd04266ab19ebe83a99b4e7c7c8907fdcf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 10 Jun 2022 14:43:12 +0200 Subject: dev-python/ipython: Force legacy setuptools backend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/850916 Signed-off-by: Michał Górny --- 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(+) (limited to 'dev-python/ipython') 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 } -- cgit v1.2.3