Group :: Development/Python3
RPM: python3-module-threadpoolctl
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname threadpoolctl
%def_with check
Name: python3-module-%oname
Version: 3.1.0
Release: alt1
Summary: Thread-pool Controls
License: BSD-3-Clause
Group: Development/Python3
Url: https://github.com/joblib/threadpoolctl
BuildArch: noarch
# https://github.com/joblib/threadpoolctl.git
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3(flit.sdist)
%if_with check
BuildRequires: /usr/bin/py.test3
%endif
%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.
%prep
%setup
%build
# flit build backend
# generate setup.py for legacy builder
%__python3 - <<-'EOF'
from pathlib import Path
from flit.sdist import SdistBuilder
with open("setup.py", "wb") as f:
sd_builder = SdistBuilder.from_ini_path(Path("pyproject.toml"))
f.write(sd_builder.make_setup_py())
EOF
%python3_build
%install
%python3_install
%check
py.test3 -vv -ra
%files
%doc LICENSE
%doc README.md CHANGES.md
%python3_sitelibdir/%oname.py
%python3_sitelibdir/__pycache__/%oname.*
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/
%changelog
…
Full changelog you can see here
%define oname threadpoolctl
%def_with check
Name: python3-module-%oname
Version: 3.1.0
Release: alt1
Summary: Thread-pool Controls
License: BSD-3-Clause
Group: Development/Python3
Url: https://github.com/joblib/threadpoolctl
BuildArch: noarch
# https://github.com/joblib/threadpoolctl.git
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3(flit.sdist)
%if_with check
BuildRequires: /usr/bin/py.test3
%endif
%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.
%prep
%setup
%build
# flit build backend
# generate setup.py for legacy builder
%__python3 - <<-'EOF'
from pathlib import Path
from flit.sdist import SdistBuilder
with open("setup.py", "wb") as f:
sd_builder = SdistBuilder.from_ini_path(Path("pyproject.toml"))
f.write(sd_builder.make_setup_py())
EOF
%python3_build
%install
%python3_install
%check
py.test3 -vv -ra
%files
%doc LICENSE
%doc README.md CHANGES.md
%python3_sitelibdir/%oname.py
%python3_sitelibdir/__pycache__/%oname.*
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/
%changelog
…
Full changelog you can see here