pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-hmmlearn: Fix make test



Module Name:	pkgsrc-wip
Committed By:	Jason W. Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Thu Dec 28 13:06:44 2023 -0600
Changeset:	1a72c7659d360d15a4c91bb3e424ff9e1bdd43ae

Modified Files:
	py-hmmlearn/Makefile

Log Message:
py-hmmlearn: Fix make test

Add rebuild with setup.py develop before pytest

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1a72c7659d360d15a4c91bb3e424ff9e1bdd43ae

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-hmmlearn/Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diffs:
diff --git a/py-hmmlearn/Makefile b/py-hmmlearn/Makefile
index 2ec3044786..12361dbe68 100644
--- a/py-hmmlearn/Makefile
+++ b/py-hmmlearn/Makefile
@@ -20,11 +20,10 @@ TEST_DEPENDS+=	${PYPKGPREFIX}-test>=5.4.1:../../devel/py-test
 USE_LANGUAGES=	c c++
 
 do-test:
-	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} --capture=no
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} setup.py develop
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m pytest --capture=no
 
 .include "../../devel/py-pybind11/buildlink3.mk"
 .include "../../lang/python/wheel.mk"
 .include "../../math/py-numpy/buildlink3.mk"
-# Testing only: Should not be necessary
-.include "../../mk/blas.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index