commit: 2d7dff861ff69b8fe029906fa2e92dd1973c3ae0 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Nov 27 09:15:27 2020 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Nov 27 09:20:22 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d7dff86
dev-python/hypothesis: Fix installing for tests Closes: https://bugs.gentoo.org/756853 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> 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 a18c69ab7a3..18d37e55ce1 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 b817839fd0a..a3cf894856a 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}"
