diff --git a/python-threadpoolctl.spec b/python-threadpoolctl.spec index 74cdb0ef4af97a7ec1b898a8989bd3fb907437e8..87b9f96bb6513cd8eae2b05e25e7eab6e7326d2a 100644 --- a/python-threadpoolctl.spec +++ b/python-threadpoolctl.spec @@ -9,7 +9,7 @@ License: BSD 3-Clause URL: https://github.com/joblib/threadpoolctl/ Source0: https://github.com/joblib/threadpoolctl/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python3-devel python3-flit python3-pip +BuildRequires: python3-devel %if %{with test} BuildRequires: python3-pytest @@ -35,10 +35,10 @@ Summary: %{summary} %autosetup -n %{pypi_name}-%{version} %build -FLIT_NO_NETWORK=1 FLIT_ROOT_INSTALL=1 flit build --format=wheel +%py3_build %install -%py3_install_wheel threadpoolctl-*.whl +%py3_install %if %{with test} %check