pkgsrc-WIP-changes archive

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

Introduce optional dependencies for py-dask



Module Name:	pkgsrc-wip
Committed By:	Matthew Danielson <matthewd%fastmail.us@localhost>
Pushed By:	matthewd
Date:		Sun Apr 10 14:12:21 2022 -0700
Changeset:	d114896966752206ae23096ef952d0eb4a8645ec

Modified Files:
	py-dask/Makefile
Added Files:
	py-dask/options.mk

Log Message:
Introduce optional dependencies for py-dask

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

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

diffstat:
 py-dask/Makefile   |  5 ++++-
 py-dask/options.mk | 30 ++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 1 deletion(-)

diffs:
diff --git a/py-dask/Makefile b/py-dask/Makefile
index 2ba94006bb..e640fce218 100644
--- a/py-dask/Makefile
+++ b/py-dask/Makefile
@@ -11,6 +11,9 @@ HOMEPAGE=	https://github.com/dask/dask/
 COMMENT=	Flexible parallel computing library for analytics
 LICENSE=	modified-bsd
 
+.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
+
 DEPENDS+=	${PYPKGPREFIX}-toolz>=0.8.2:../../devel/py-toolz
 DEPENDS+=	${PYPKGPREFIX}-numpy>=1.18:../../math/py-numpy
 DEPENDS+=	${PYPKGPREFIX}-pandas>=1.0:../../math/py-pandas
@@ -30,7 +33,7 @@ TEST_DEPENDS+=	${PYPKGPREFIX}-pre-commit-[0-9]*:../../wip/py-pre-commit
 
 # The setup.py has integration with pytest-runner, but throws odd errors
 do-test:
-	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m pytest -s tests
 
 USE_LANGUAGES=	# none
 
diff --git a/py-dask/options.mk b/py-dask/options.mk
new file mode 100644
index 0000000000..11d3e5fcd7
--- /dev/null
+++ b/py-dask/options.mk
@@ -0,0 +1,30 @@
+# $NetBSD: options.mk,v 1.5 2019/04/26 13:13:46 maya Exp $
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.py-dask
+PKG_SUPPORTED_OPTIONS=	cityhash cytoolz fastparquet psutil scipy sqlalchemy
+PKG_SUGGESTED_OPTIONS=	cityhash cytoolz psutil scipy sqlalchemy
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mcityhash)
+DEPENDS+=	cityhash-[0-9]*:../../wip/py-cityhash
+.endif
+
+.if !empty(PKG_OPTIONS:Mcytoolz)
+DEPENDS+=	${PYPKGPREFIX}-cytoolz-[0-9]*:../../devel/py-cytoolz
+.endif
+
+.if !empty(PKG_OPTIONS:Mfastparquet)
+DEPENDS+=	fastparquet-[0-9]*:../../wip/py-fastparquet
+.endif
+
+.if !empty(PKG_OPTIONS:Msqlalchemy)
+DEPENDS+=	${PYPKGPREFIX}-sqlalchemy-[0-9]*:../../databases/py-sqlalchemy
+.endif
+
+.if !empty(PKG_OPTIONS:Mscipy)
+DEPENDS+=	${PYPKGPREFIX}-scipy-[0-9]*:../../math/py-scipy
+.endif
+.if !empty(PKG_OPTIONS:Mpsutil)
+DEPENDS+=	${PYPKGPREFIX}-psutil-[0-9]*:../../sysutils/py-psutil
+.endif


Home | Main Index | Thread Index | Old Index