pkgsrc-WIP-changes archive

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

py-threadpoolctl: Hook up make test correctly



Module Name:	pkgsrc-wip
Committed By:	Matthew Danielson <matthewd%fastmail.us@localhost>
Pushed By:	matthewd
Date:		Sun Jul 3 19:42:45 2022 -0700
Changeset:	c54a2047d0d83f26bea7b552add346703c3643bf

Modified Files:
	py-threadpoolctl/Makefile

Log Message:
py-threadpoolctl: Hook up make test correctly

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

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

diffstat:
 py-threadpoolctl/Makefile | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diffs:
diff --git a/py-threadpoolctl/Makefile b/py-threadpoolctl/Makefile
index f0f5132c05..1a8dbd389b 100644
--- a/py-threadpoolctl/Makefile
+++ b/py-threadpoolctl/Makefile
@@ -9,8 +9,18 @@ MAINTAINER=	matthewd%fastmail.us@localhost
 COMMENT=	Python helpers to limit the number of threads of datascience tools
 LICENSE=	modified-bsd
 
+BUILD_DEPENDS+=	${PYPKGPREFIX}-flit_core>=3.7.1:../../devel/py-flit_core
+TEST_DEPENDS+=	${PYPKGPREFIX}-scipy>=1.8.1:../../math/py-scipy
+TEST_DEPENDS+=	${PYPKGPREFIX}-cython>=0.29.30:../../devel/py-cython
+
+USE_LANGUAGES+= c c++
+
 do-test:
-	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m pytest -s
+	# From continous_integration/build_test_ext.sh
+	cd ${WRKSRC}/tests/_openmp_test_helper && ${SETENV} ${TEST_ENV} ${PYTHONBIN} setup_inner.py build_ext -i
+	cd ${WRKSRC}/tests/_openmp_test_helper && ${SETENV} ${TEST_ENV} ${PYTHONBIN} setup_outer.py build_ext -i
+	cd ${WRKSRC}/tests/_openmp_test_helper && ${SETENV} ${TEST_ENV} ${PYTHONBIN} setup_nested_prange_blas.py build_ext -i
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m pytest -s -v
 
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index