Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: python@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 2/4] dev-python/hypothesis: Use dift --via-root API
Date: Sat, 28 Nov 2020 23:51:33
Message-Id: 20201128235104.52278-2-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/4] distutils-r1.eclass: Introduce install_for_testing --via-root by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 dev-python/hypothesis/hypothesis-5.41.4.ebuild | 6 +-----
4 1 file changed, 1 insertion(+), 5 deletions(-)
5
6 diff --git a/dev-python/hypothesis/hypothesis-5.41.4.ebuild b/dev-python/hypothesis/hypothesis-5.41.4.ebuild
7 index 30e83a217730..7cd8e4bcc527 100644
8 --- a/dev-python/hypothesis/hypothesis-5.41.4.ebuild
9 +++ b/dev-python/hypothesis/hypothesis-5.41.4.ebuild
10 @@ -48,11 +48,7 @@ python_prepare() {
11 }
12
13 python_test() {
14 - local -x PYTHONPATH="${BUILD_DIR}/install/lib"
15 - esetup.py install \
16 - --root="${BUILD_DIR}/install" \
17 - --install-lib=lib
18 -
19 + distutils_install_for_testing --via-root
20 pytest -vv tests/cover tests/pytest tests/quality \
21 -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" ||
22 die "Tests fail with ${EPYTHON}"
23 --
24 2.29.2