svn commit: r560935 - head/devel/py-cffi
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Jan 10 08:20:11 UTC 2021
Author: sunpoet
Date: Sun Jan 10 08:20:05 2021
New Revision: 560935
URL: https://svnweb.freebsd.org/changeset/ports/560935
Log:
Simplify do-test:
Modified:
head/devel/py-cffi/Makefile
Modified: head/devel/py-cffi/Makefile
==============================================================================
--- head/devel/py-cffi/Makefile Sun Jan 10 08:20:00 2021 (r560934)
+++ head/devel/py-cffi/Makefile Sun Jan 10 08:20:05 2021 (r560935)
@@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libffi.so:devel/libffi
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycparser>=0:devel/py-pycparser@${PY_FLAVOR}
-TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
USES= compiler:c11 localbase python:3.6+
USE_PYTHON= autoplist concurrent distutils
@@ -30,7 +30,6 @@ post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_cffi_backend*.so
do-test:
- cd ${TEST_WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} build_ext -i
- cd ${TEST_WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
+ cd ${WRKSRC} && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} -m pytest -rs -v
.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list