Files
openRuyi/SPECS/python-threadpoolctl/python-threadpoolctl.spec
2026-03-19 19:47:32 +08:00

44 lines
1.3 KiB
RPMSpec

# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0
%global srcname threadpoolctl
Name: python-%{srcname}
Version: 3.5.0
Release: %autorelease
Summary: Thread-pool Controls
License: BSD-3-Clause
URL: https://github.com/joblib/threadpoolctl
#!RemoteAsset
Source0: https://files.pythonhosted.org/packages/source/t/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildSystem: pyproject
BuildOption(install): %{srcname}
BuildRequires: pyproject-rpm-macros
BuildRequires: pkgconfig(python3)
Provides: python3-%{srcname}
%python_provide python3-%{srcname}
%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.
%generate_buildrequires
%pyproject_buildrequires
%files -f %{pyproject_files}
%doc README.md multiple_openmp.md
%changelog
%{?autochangelog}