pkgsrc-WIP-changes archive

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

py-dask: add further dependencies as options



Module Name:	pkgsrc-wip
Committed By:	Matthew Danielson <matthewd%fastmail.us@localhost>
Pushed By:	matthewd
Date:		Mon Apr 11 14:05:12 2022 -0700
Changeset:	ea1171f56964bb832197ecd58b075dfac6aec491

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

Log Message:
py-dask: add further dependencies as options

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

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

diffstat:
 py-dask/Makefile   |  2 +-
 py-dask/options.mk | 28 +++++++++++++++++++++++++---
 2 files changed, 26 insertions(+), 4 deletions(-)

diffs:
diff --git a/py-dask/Makefile b/py-dask/Makefile
index e640fce218..0d0c6bc5d6 100644
--- a/py-dask/Makefile
+++ b/py-dask/Makefile
@@ -33,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} ${PYTHONBIN} -m pytest -s tests
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m pytest -s
 
 USE_LANGUAGES=	# none
 
diff --git a/py-dask/options.mk b/py-dask/options.mk
index 11d3e5fcd7..d19802a89e 100644
--- a/py-dask/options.mk
+++ b/py-dask/options.mk
@@ -1,30 +1,52 @@
 # $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
+PKG_SUPPORTED_OPTIONS=	cityhash cytoolz fastparquet graphviz psutil scipy skimage xarray sqlalchemy
+PKG_SUGGESTED_OPTIONS=	cityhash cytoolz fastparquet psutil scipy skimage xarray sqlalchemy
 
 .include "../../mk/bsd.options.mk"
 
+# Cityhash is an optional dependency for faster string hashing
 .if !empty(PKG_OPTIONS:Mcityhash)
 DEPENDS+=	cityhash-[0-9]*:../../wip/py-cityhash
 .endif
 
+# cytoolz is an optional dependency, will replace devel/py-toolz
 .if !empty(PKG_OPTIONS:Mcytoolz)
 DEPENDS+=	${PYPKGPREFIX}-cytoolz-[0-9]*:../../devel/py-cytoolz
 .endif
 
+# enable reading parquet files
 .if !empty(PKG_OPTIONS:Mfastparquet)
-DEPENDS+=	fastparquet-[0-9]*:../../wip/py-fastparquet
+DEPENDS+=	${PYPKGPREFIX}-fastparquet-[0-9]*:../../wip/py-fastparquet
 .endif
 
+# graphviz is used to display the task dependencies
+.if !empty(PKG_OPTIONS:Mgraphviz)
+DEPENDS+=	${PYPKGPREFIX}-graphviz-[0-9]*:../../graphics/py-graphviz
+.endif
+
+# SQL Support
 .if !empty(PKG_OPTIONS:Msqlalchemy)
 DEPENDS+=	${PYPKGPREFIX}-sqlalchemy-[0-9]*:../../databases/py-sqlalchemy
 .endif
 
+# Enable scikit-image
+.if !empty(PKG_OPTIONS:Mskimage)
+DEPENDS+=	${PYPKGPREFIX}-scikit-image-[0-9]*:../../math/py-scikit-image
+.endif
+
+# X-array support
+.if !empty(PKG_OPTIONS:Mxarray)
+DEPENDS+=	${PYPKGPREFIX}-xarray-[0-9]*:../../math/py-xarray
+.endif
+
+# scipy support
 .if !empty(PKG_OPTIONS:Mscipy)
 DEPENDS+=	${PYPKGPREFIX}-scipy-[0-9]*:../../math/py-scipy
 .endif
+
+# Better cpu/memory/resource reporting
 .if !empty(PKG_OPTIONS:Mpsutil)
 DEPENDS+=	${PYPKGPREFIX}-psutil-[0-9]*:../../sysutils/py-psutil
 .endif


Home | Main Index | Thread Index | Old Index