Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jan 2021 08:20:05 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r560935 - head/devel/py-cffi
Message-ID:  <202101100820.10A8K5WP010656@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101100820.10A8K5WP010656>