Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163142460
D35513.id107005.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D35513.id107005.diff
View Options
diff --git a/devel/Makefile b/devel/Makefile
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5385,6 +5385,7 @@
SUBDIR += py-testscenarios
SUBDIR += py-testtools
SUBDIR += py-thefuzz
+ SUBDIR += py-threadpoolctl
SUBDIR += py-threema-msgapi
SUBDIR += py-thrift
SUBDIR += py-thriftpy2
diff --git a/devel/py-threadpoolctl/Makefile b/devel/py-threadpoolctl/Makefile
new file mode 100644
--- /dev/null
+++ b/devel/py-threadpoolctl/Makefile
@@ -0,0 +1,33 @@
+# Created by: thierry@pompo.net
+
+PORTNAME= threadpoolctl
+PORTVERSION= 3.1.0
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= Thread-pool Controls for Python
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+#USE_GITHUB= yes
+#GH_ACCOUNT= joblib
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}build>0:devel/py-build@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}flit-core>0:devel/py-flit-core@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}installer>0:devel/py-installer@${PY_FLAVOR}
+
+USES= python:3.8+
+NO_ARCH= yes
+
+do-build:
+ (cd ${WRKSRC} && ${PYTHON_CMD} -m build --wheel --no-isolation)
+
+do-install:
+ ${MKDIR} ${STAGEDIE}${PYTHONPREFIX_SITELIBDIR}
+ (cd ${WRKSRC} && \
+ ${PYTHON_CMD} -m installer --destdir="${STAGEDIR}" dist/*.whl)
+
+.include <bsd.port.mk>
diff --git a/devel/py-threadpoolctl/distinfo b/devel/py-threadpoolctl/distinfo
new file mode 100644
--- /dev/null
+++ b/devel/py-threadpoolctl/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1655408452
+SHA256 (threadpoolctl-3.1.0.tar.gz) = a335baacfaa4400ae1f0d8e3a58d6674d2f8828e3716bb2802c44955ad391380
+SIZE (threadpoolctl-3.1.0.tar.gz) = 33651
diff --git a/devel/py-threadpoolctl/pkg-descr b/devel/py-threadpoolctl/pkg-descr
new file mode 100644
--- /dev/null
+++ b/devel/py-threadpoolctl/pkg-descr
@@ -0,0 +1,8 @@
+Python helpers to limit the number of threads used in the threadpool-backed of
+common native libraries used for scientific computing and data science (e.g.
+BLAS and OpenMP).
+
+Fine control of the underlying thread-pool size can be useful in workloads that
+involve nested parallelism so as to mitigate oversubscription issues.
+
+WWW: https://github.com/joblib/threadpoolctl
diff --git a/devel/py-threadpoolctl/pkg-plist b/devel/py-threadpoolctl/pkg-plist
new file mode 100644
--- /dev/null
+++ b/devel/py-threadpoolctl/pkg-plist
@@ -0,0 +1,7 @@
+%%PYTHON_SITELIBDIR%%/__pycache__/threadpoolctl%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/__pycache__/threadpoolctl%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/threadpoolctl-3.1.0.dist-info/LICENSE
+%%PYTHON_SITELIBDIR%%/threadpoolctl-3.1.0.dist-info/METADATA
+%%PYTHON_SITELIBDIR%%/threadpoolctl-3.1.0.dist-info/RECORD
+%%PYTHON_SITELIBDIR%%/threadpoolctl-3.1.0.dist-info/WHEEL
+%%PYTHON_SITELIBDIR%%/threadpoolctl.py
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 21, 11:48 AM (43 m, 57 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35315382
Default Alt Text
D35513.id107005.diff (2 KB)
Attached To
Mode
D35513: [WIP] Adding devel/py-threadpoolctl
Attached
Detach File
Event Timeline
Log In to Comment