Needed so we can update the currently broken sklearn port. Tested by myself and James Cook. ok kmos@ Information for inst:py3-threadpoolctl-2.1.0 Comment: introspect/set max threads in native libraries like BLAS Description: 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. Maintainer: The OpenBSD ports mailing-list <ports@openbsd.org> WWW: https://github.com/joblib/threadpoolctl
30 lines
587 B
Makefile
30 lines
587 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2020/10/27 21:48:03 daniel Exp $
|
|
|
|
COMMENT = introspect/set max threads in native libraries like BLAS
|
|
|
|
MODPY_EGG_VERSION = 2.1.0
|
|
DISTNAME = threadpoolctl-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-${DISTNAME}
|
|
|
|
CATEGORIES = sysutils
|
|
|
|
HOMEPAGE = https://github.com/joblib/threadpoolctl
|
|
|
|
# BSD-3
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MODULES = lang/python
|
|
|
|
MODPY_PI = Yes
|
|
MODPY_SETUPTOOLS = Yes
|
|
MODPY_PYTEST = Yes
|
|
|
|
FLAVORS = python3
|
|
FLAVOR = python3
|
|
|
|
post-extract:
|
|
sed -i 's/python/python${MODPY_VERSION}/g' \
|
|
${WRKSRC}/tests/test_threadpoolctl.py
|
|
|
|
.include <bsd.port.mk>
|