3 %bcond_with tests # unit tests (some build step needed)
5 Summary: Thread-pool controls
6 Summary(pl.UTF-8): Sterowanie pulą wątków
7 Name: python3-threadpoolctl
11 Group: Libraries/Python
12 #Source0Download: https://pypi.org/simple/threadpoolctl/
13 Source0: https://files.pythonhosted.org/packages/source/t/threadpoolctl/threadpoolctl-%{version}.tar.gz
14 # Source0-md5: 99bfceb7a7e9547c0ae98d74e382f328
15 URL: https://pypi.org/project/threadpoolctl/
17 BuildRequires: python3-pytest
19 BuildRequires: rpm-pythonprov
20 BuildRequires: rpmbuild(macros) >= 1.714
21 BuildRequires: python3-modules >= 1:3.5
22 Requires: python3-modules >= 1:3.5
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Python helpers to limit the number of threads used in the
28 threadpool-backed of common native libraries used for scientific
29 computing and data science (e.g. BLAS and OpenMP).
31 Fine control of the underlying thread-pool size can be useful in
32 workloads that involve nested parallelism so as to mitigate
33 oversubscription issues.
35 %description -l pl.UTF-8
36 Pythonowe funkcje pomocnicze do ograniczania liczby wątków używanych
37 przez korzystające z threadpoola popularne biblioteki natywne, służące
38 do obliczeń naukowych (np. BLAS czy OpenMP).
40 Dokładna kontrola rozmiaru puli wątków może być przydatna pod
41 obciążeniem związanym z zagnieżdżonym zrównolegleniem, a także pomóc
42 przy problemach ze zbyt dużym obciążeniem.
45 %setup -q -n threadpoolctl-%{version}
52 %{__python3} -m pytest tests
56 rm -rf $RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
65 %doc CHANGES.md LICENSE README.md multiple_openmp.md
66 %{py3_sitescriptdir}/threadpoolctl.py
67 %{py3_sitescriptdir}/__pycache__/threadpoolctl.cpython-*.py[co]
68 %{py3_sitescriptdir}/threadpoolctl-%{version}-py*.egg-info