commit:     5c57d63fafc8b54bdf2646834ac7d98c22d86fbc
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 22 14:52:57 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed Nov 22 15:00:55 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c57d63f

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 <andrewammerlaan <AT> gentoo.org>

 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 5e14c17b6ffa..fc5b7013cbbb 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)

Reply via email to