From 5c57d63fafc8b54bdf2646834ac7d98c22d86fbc Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Wed, 22 Nov 2023 15:52:57 +0100 Subject: [PATCH] dev-python/numexpr: use python_get_sitedir for tests The tests still fail with pypy3, but at least with this change it doesn't error out on the pushd Signed-off-by: Andrew Ammerlaan --- dev-python/numexpr/numexpr-2.8.7.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/numexpr/numexpr-2.8.7.ebuild b/dev-python/numexpr/numexpr-2.8.7.ebuild index 5e14c17b6ffac..fc5b7013cbbb6 100644 --- a/dev-python/numexpr/numexpr-2.8.7.ebuild +++ b/dev-python/numexpr/numexpr-2.8.7.ebuild @@ -30,7 +30,7 @@ RDEPEND=" " python_test() { - pushd "${BUILD_DIR}/install/usr/lib/${EPYTHON}/site-packages" >/dev/null || die + pushd "${BUILD_DIR}/install/$(python_get_sitedir)" >/dev/null || die "${EPYTHON}" - <<-EOF || die "Tests failed with ${EPYTHON}" import sys,numexpr sys.exit(0 if numexpr.test().wasSuccessful() else 1)