diff options
Diffstat (limited to 'devel/py-joblib')
-rw-r--r-- | devel/py-joblib/Makefile | 7 | ||||
-rw-r--r-- | devel/py-joblib/distinfo | 6 | ||||
-rw-r--r-- | devel/py-joblib/files/patch-joblib_externals_loky_backend_context.py | 38 |
3 files changed, 15 insertions, 36 deletions
diff --git a/devel/py-joblib/Makefile b/devel/py-joblib/Makefile index 6b317d3ba2c8..a4d63d568408 100644 --- a/devel/py-joblib/Makefile +++ b/devel/py-joblib/Makefile @@ -1,6 +1,5 @@ PORTNAME= joblib -PORTVERSION= 1.3.2 -PORTREVISION= 2 +PORTVERSION= 1.5.1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,11 +11,13 @@ WWW= https://joblib.readthedocs.io/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} TEST_DEPENDS= ${PYNUMPY} #TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}threadpoolctl>0:devel/py-threadpoolctl@${PY_FLAVOR} USES= python -USE_PYTHON= distutils autoplist pytest +USE_PYTHON= autoplist pep517 pytest NO_ARCH= yes diff --git a/devel/py-joblib/distinfo b/devel/py-joblib/distinfo index 6e588c33dbb0..af38c3d6b0c1 100644 --- a/devel/py-joblib/distinfo +++ b/devel/py-joblib/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1693055944 -SHA256 (joblib-1.3.2.tar.gz) = 92f865e621e17784e7955080b6d042489e3b8e294949cc44c6eac304f59772b1 -SIZE (joblib-1.3.2.tar.gz) = 1987720 +TIMESTAMP = 1748736368 +SHA256 (joblib-1.5.1.tar.gz) = f4f86e351f39fe3d0d32a9f2c3d8af1ee4cec285aafcb27003dda5205576b444 +SIZE (joblib-1.5.1.tar.gz) = 330475 diff --git a/devel/py-joblib/files/patch-joblib_externals_loky_backend_context.py b/devel/py-joblib/files/patch-joblib_externals_loky_backend_context.py index 217577a36292..5782ed4dd74c 100644 --- a/devel/py-joblib/files/patch-joblib_externals_loky_backend_context.py +++ b/devel/py-joblib/files/patch-joblib_externals_loky_backend_context.py @@ -1,25 +1,10 @@ ---- joblib/externals/loky/backend/context.py.orig 2023-06-29 15:14:21 UTC +--- joblib/externals/loky/backend/context.py.orig 2025-06-01 15:05:29 UTC +++ joblib/externals/loky/backend/context.py -@@ -245,6 +245,9 @@ def _count_physical_cores(): - return physical_cores_cache, exception - - # Not cached yet, find it -+ # Using subprocesses is inefficient, but python has no portable -+ # sysctl interface at this time -+ # FIXME: Add OpenBSD, Dragonfly - try: - if sys.platform == "linux": - cpu_info = subprocess.run( -@@ -269,6 +272,26 @@ def _count_physical_cores(): +@@ -247,6 +247,14 @@ def _count_physical_cores(): + cpu_count_physical = _count_physical_cores_win32() elif sys.platform == "darwin": - cpu_info = subprocess.run( - "sysctl -n hw.physicalcpu".split(), -+ capture_output=True, -+ text=True, -+ ) -+ cpu_info = cpu_info.stdout -+ cpu_count_physical = int(cpu_info) -+ elif sys.platform.startswith('freebsd'): + cpu_count_physical = _count_physical_cores_darwin() ++ elif sys.platform.startswith("freebsd"): + cpu_info = subprocess.run( + "sysctl -n kern.smp.cores".split(), + capture_output=True, @@ -27,13 +12,6 @@ + ) + cpu_info = cpu_info.stdout + cpu_count_physical = int(cpu_info) -+ elif sys.platform.startswith('netbsd'): -+ # FIXME: hw.ncpu reports the number of hyperthreads. -+ # We prefer independent cores to prevent oversubscription. -+ # NetBSD does not currently expose physical core counts, -+ # but this is under discussion in PR kern/57816. -+ cpu_info = subprocess.run( -+ "sysctl -n hw.ncpu".split(), - capture_output=True, - text=True, - ) + else: + raise NotImplementedError(f"unsupported platform: {sys.platform}") + |