From 2d7dff861ff69b8fe029906fa2e92dd1973c3ae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 27 Nov 2020 10:15:27 +0100 Subject: [PATCH] dev-python/hypothesis: Fix installing for tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/756853 Signed-off-by: Michał Górny --- dev-python/hypothesis/hypothesis-5.37.5.ebuild | 5 +++++ dev-python/hypothesis/hypothesis-5.41.3.ebuild | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/dev-python/hypothesis/hypothesis-5.37.5.ebuild b/dev-python/hypothesis/hypothesis-5.37.5.ebuild index a18c69ab7a350..18d37e55ce1b4 100644 --- a/dev-python/hypothesis/hypothesis-5.37.5.ebuild +++ b/dev-python/hypothesis/hypothesis-5.37.5.ebuild @@ -48,6 +48,11 @@ python_prepare() { } python_test() { + local -x PYTHONPATH="${BUILD_DIR}/install/lib" + esetup.py install \ + --root="${BUILD_DIR}/install" \ + --install-lib=lib + pytest -vv tests/cover tests/pytest tests/quality \ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" || die "Tests fail with ${EPYTHON}" diff --git a/dev-python/hypothesis/hypothesis-5.41.3.ebuild b/dev-python/hypothesis/hypothesis-5.41.3.ebuild index b817839fd0ac5..a3cf894856ae4 100644 --- a/dev-python/hypothesis/hypothesis-5.41.3.ebuild +++ b/dev-python/hypothesis/hypothesis-5.41.3.ebuild @@ -48,6 +48,11 @@ python_prepare() { } python_test() { + local -x PYTHONPATH="${BUILD_DIR}/install/lib" + esetup.py install \ + --root="${BUILD_DIR}/install" \ + --install-lib=lib + pytest -vv tests/cover tests/pytest tests/quality \ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" || die "Tests fail with ${EPYTHON}"