From ad0f75d8d0a80d711b26c24601de16b4070d8951 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 5 Jan 2020 20:28:12 +0100 Subject: [PATCH] dev-lang/python: Add check-reqs for tests to 3.8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-lang/python/python-3.9.0_alpha2.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dev-lang/python/python-3.9.0_alpha2.ebuild b/dev-lang/python/python-3.9.0_alpha2.ebuild index 4d14640421de..1dea22df2a99 100644 --- a/dev-lang/python/python-3.9.0_alpha2.ebuild +++ b/dev-lang/python/python-3.9.0_alpha2.ebuild @@ -4,7 +4,8 @@ EAPI="7" WANT_LIBTOOL="none" -inherit autotools flag-o-matic pax-utils python-utils-r1 toolchain-funcs +inherit autotools check-reqs flag-o-matic pax-utils python-utils-r1 \ + toolchain-funcs MY_P="Python-${PV/_alpha/a}" PYVER=$(ver_cut 1-2) @@ -57,12 +58,21 @@ DEPEND="${RDEPEND} RDEPEND+=" !build? ( app-misc/mime-types )" PDEPEND=">=app-eselect/eselect-python-20140125-r1" +# large file tests involve a 2.5G file being copied (duplicated) +CHECKREQS_DISK_BUILD=5500M + pkg_pretend() { + use test && check-reqs_pkg_pretend + ewarn "This is an early developer preview of Python 3.9. New features" ewarn "can still be added up to 2020-05-18. It's not suitable for production" ewarn "use, and it is not supported for Gentoo packages." } +pkg_setup() { + use test && check-reqs_pkg_setup +} + src_prepare() { # Ensure that internal copies of expat, libffi and zlib are not used. rm -fr Modules/expat || die -- 2.26.2