pkgsrc-Changes archive

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

CVS commit: pkgsrc/parallel/py-threadpoolctl



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Sep 23 13:11:47 UTC 2026

Modified Files:
        pkgsrc/parallel/py-threadpoolctl: Makefile distinfo
Removed Files:
        pkgsrc/parallel/py-threadpoolctl/patches: patch-pyproject.toml

Log Message:
py-threadpoolctl: updated to 3.7.0

3.7.0 (2026-09-15)

Fixed an intermittent OSError on Windows when DLLs are loaded or unloaded concurrently during library discovery (for example when importing conda-forge OpenCV). On Python 3.14+, discovery uses 
ctypes.util.dllist when available. If dllist raises OSError, threadpoolctl emits a RuntimeWarning instead of crashing so the failure can be reported upstream with a minimal reproducer. Older Pythons 
use a Toolhelp snapshot enumerator, with graceful per-module fallbacks.

Added the ability to check whether a limiting API affects just the current thread or the whole process. Mainly aimed at debugging and diagnostics, and somewhat unreliable, it is therefore enabled by 
default only for command-line usage.

Only warn about simultaneous libomp and libiomp usage on Linux, where the incompatibility is known to cause crashes.

Fixed a deadlock triggered by getting or setting MKL's number of threads from parallel threads when using MKL with libiomp (Intel threading) on Linux.

Going forward, setting the number of threads will only have a thread-local impact if feasible (for example, at minimum the underlying library must support this option, and many don't.)

For MKL, setting the number of threads is now thread-local, i.e. limiting the number of threads won't impact MKL's thread pool size when using MKL in other Python threads.

For OpenBLAS compiled with OpenMP on Linux and macOS, setting the number of threads is now thread-local, i.e. won't impact OpenBLAS thread pool size in other Python threads. On Windows behavior is 
likely process-wide, but this may depend on how OpenBLAS was compiled with OpenMP.

Fix OpenBLAS detection for conda package on Windows

Fixed a deadlock on Linux when using threadpoolctl from multiple threads.

Start using Python 3.14's built-in support for listing shared libraries.

On Linux, start using /proc/self/maps for listing shared libraries.

Avoid importing ctypes.util on Linux (and load libc with ctypes.CDLL(None)) so threadpool_info() does not create libffi closures that can abort after os.fork() on some libffi builds.

Dropped official support for Python 3.9.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/parallel/py-threadpoolctl/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/parallel/py-threadpoolctl/distinfo
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/parallel/py-threadpoolctl/patches/patch-pyproject.toml

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

Modified files:

Index: pkgsrc/parallel/py-threadpoolctl/Makefile
diff -u pkgsrc/parallel/py-threadpoolctl/Makefile:1.9 pkgsrc/parallel/py-threadpoolctl/Makefile:1.10
--- pkgsrc/parallel/py-threadpoolctl/Makefile:1.9       Wed Aug 12 21:47:29 2026
+++ pkgsrc/parallel/py-threadpoolctl/Makefile   Wed Sep 23 13:11:47 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2026/08/12 21:47:29 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2026/09/23 13:11:47 adam Exp $
 
-DISTNAME=      threadpoolctl-3.6.0
+DISTNAME=      threadpoolctl-3.7.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
 CATEGORIES=    parallel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=t/threadpoolctl/}
@@ -11,7 +11,7 @@ COMMENT=      Helpers to limit the number of 
 LICENSE=       modified-bsd
 
 TOOL_DEPENDS+= ${PYPKGPREFIX}-flit_core>=4:../../devel/py-flit_core
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=0:../../devel/py-test-cov
 
 USE_LANGUAGES= # none
 

Index: pkgsrc/parallel/py-threadpoolctl/distinfo
diff -u pkgsrc/parallel/py-threadpoolctl/distinfo:1.7 pkgsrc/parallel/py-threadpoolctl/distinfo:1.8
--- pkgsrc/parallel/py-threadpoolctl/distinfo:1.7       Wed Aug 12 21:47:29 2026
+++ pkgsrc/parallel/py-threadpoolctl/distinfo   Wed Sep 23 13:11:47 2026
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.7 2026/08/12 21:47:29 wiz Exp $
+$NetBSD: distinfo,v 1.8 2026/09/23 13:11:47 adam Exp $
 
-BLAKE2s (threadpoolctl-3.6.0.tar.gz) = d5bdba6a6e0450c9231d154d51333431697ecb09ed278a88260a91f5c7431f89
-SHA512 (threadpoolctl-3.6.0.tar.gz) = 1fcc39a643db15b7415ad81206078d5ec571d99bab2a8b6c63180f45ce43479876700e3eb36a317b51df18633b2c5455d54553dd710a9c9a8ce2f77bebd5792a
-Size (threadpoolctl-3.6.0.tar.gz) = 21274 bytes
-SHA1 (patch-pyproject.toml) = 6bb5f0a6c08fdc6fdc585d4067cef0c9b88042f3
+BLAKE2s (threadpoolctl-3.7.0.tar.gz) = df5653c75487830996b6387fc35f8ccfe76070a9a54a359b188b8c4ee62cc261
+SHA512 (threadpoolctl-3.7.0.tar.gz) = 7f0a533a8c7ad7efee028c4986c7e567bd982d1904aa08d0e1187693dd38f7ce577ff0ef87b7572691be4f7b0bab4e98cce9ad84ad1e1ff7a72224474f131f4d
+Size (threadpoolctl-3.7.0.tar.gz) = 31961 bytes



Home | Main Index | Thread Index | Old Index