diff --git a/math/py-gmpy2/Makefile b/math/py-gmpy2/Makefile index 07be6ff81587..2e1787e26c7a 100644 --- a/math/py-gmpy2/Makefile +++ b/math/py-gmpy2/Makefile @@ -1,29 +1,29 @@ PORTNAME= gmpy2 DISTVERSION= 2.1.5 CATEGORIES= math python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= GMP/MPIR, MPFR, and MPC interface to Python WWW= https://gmpy2.readthedocs.io/en/latest/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libgmp.so:math/gmp \ libmpc.so:math/mpc \ libmpfr.so:math/mpfr USES= localbase python -USE_PYTHON= distutils autoplist pytest # 2 tests fail, see https://github.com/aleaxit/gmpy/issues/403 +USE_PYTHON= distutils autoplist TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/gmpy2/gmpy2*.so -do-test: - @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest +do-test: # pytest isn't currently supported, see https://github.com/aleaxit/gmpy/issues/403#issuecomment-1484584428 + @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} test/runtests.py .include