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@gentoo.org>
This commit is contained in:
Andrew Ammerlaan
2023-11-22 15:52:57 +01:00
parent b91f4b53b4
commit 5c57d63faf

View File

@@ -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)