[packages/python3-threadpoolctl] - new

qboosh qboosh at pld-linux.org
Tue May 12 22:43:13 CEST 2020


commit 8ffc0cecb9a40fa757a08b1d22fc0487a887d2bc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue May 12 22:43:34 2020 +0200

    - new

 python3-threadpoolctl.spec | 68 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)
---
diff --git a/python3-threadpoolctl.spec b/python3-threadpoolctl.spec
new file mode 100644
index 0000000..8605734
--- /dev/null
+++ b/python3-threadpoolctl.spec
@@ -0,0 +1,68 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (some build step needed)
+
+Summary:	Thread-pool controls
+Summary(pl.UTF-8):	Sterowanie pulą wątków
+Name:		python3-threadpoolctl
+Version:	2.0.0
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/threadpoolctl/
+Source0:	https://files.pythonhosted.org/packages/source/t/threadpoolctl/threadpoolctl-%{version}.tar.gz
+# Source0-md5:	99bfceb7a7e9547c0ae98d74e382f328
+URL:		https://pypi.org/project/threadpoolctl/
+%if %{with tests}
+BuildRequires:	python3-pytest
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	python3-modules >= 1:3.5
+Requires:	python3-modules >= 1:3.5
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+%description -l pl.UTF-8
+Pythonowe funkcje pomocnicze do ograniczania liczby wątków używanych
+przez korzystające z threadpoola popularne biblioteki natywne, służące
+do obliczeń naukowych (np. BLAS czy OpenMP).
+
+Dokładna kontrola rozmiaru puli wątków może być przydatna pod
+obciążeniem związanym z zagnieżdżonym zrównolegleniem, a także pomóc
+przy problemach ze zbyt dużym obciążeniem.
+
+%prep
+%setup -q -n threadpoolctl-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.md LICENSE README.md multiple_openmp.md
+%{py3_sitescriptdir}/threadpoolctl.py
+%{py3_sitescriptdir}/__pycache__/threadpoolctl.cpython-*.py[co]
+%{py3_sitescriptdir}/threadpoolctl-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-threadpoolctl.git/commitdiff/8ffc0cecb9a40fa757a08b1d22fc0487a887d2bc



More information about the pld-cvs-commit mailing list