summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-01-05 20:28:12 +0100
committerMichał Górny <mgorny@gentoo.org>2020-01-05 20:30:54 +0100
commitad0f75d8d0a80d711b26c24601de16b4070d8951 (patch)
tree78412850042ee4f9da51c2e717ca4d1a41e388dd /dev-lang
parentdev-python/python-docs: Bump to 3.8.1 (diff)
downloadgentoo-ad0f75d8d0a80d711b26c24601de16b4070d8951.tar.gz
gentoo-ad0f75d8d0a80d711b26c24601de16b4070d8951.tar.bz2
gentoo-ad0f75d8d0a80d711b26c24601de16b4070d8951.zip
dev-lang/python: Add check-reqs for tests to 3.8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/python/python-3.9.0_alpha2.ebuild12
1 files changed, 11 insertions, 1 deletions
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