git: bf1149cbdbc2 - main - textproc/py-bracex: Set PYTHONPATH in TEST_ENV
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 Mar 2023 10:30:15 UTC
The branch main has been updated by matthew:
URL: https://cgit.FreeBSD.org/ports/commit/?id=bf1149cbdbc2c1719490fb40b114356c31adb51e
commit bf1149cbdbc2c1719490fb40b114356c31adb51e
Author: Matthew Seaman <matthew@FreeBSD.org>
AuthorDate: 2023-03-29 10:27:54 +0000
Commit: Matthew Seaman <matthew@FreeBSD.org>
CommitDate: 2023-03-29 10:27:54 +0000
textproc/py-bracex: Set PYTHONPATH in TEST_ENV
Ensure that tests are run against the new copy of the module in the
staging directory, and not an earlier version that already happened to
be installed.
---
textproc/py-bracex/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/textproc/py-bracex/Makefile b/textproc/py-bracex/Makefile
index 3b3eb1f6612e..9a1993d3398e 100644
--- a/textproc/py-bracex/Makefile
+++ b/textproc/py-bracex/Makefile
@@ -21,6 +21,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
USES= python:3.7+
USE_PYTHON= autoplist pep517 pytest
+TEST_ENV+= PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
+
NO_ARCH= yes
.include <bsd.port.mk>