diff --git a/python-annoy.changes b/python-annoy.changes index 8827e0d..f4b668e 100644 --- a/python-annoy.changes +++ b/python-annoy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 13:14:48 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon Oct 30 12:36:17 UTC 2023 - pgajdos@suse.com diff --git a/python-annoy.spec b/python-annoy.spec index 7c6afbe..8ad7abc 100644 --- a/python-annoy.spec +++ b/python-annoy.spec @@ -1,7 +1,7 @@ # # spec file for package python-annoy # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,8 +30,10 @@ BuildRequires: %{python_module cached-property} BuildRequires: %{python_module devel} BuildRequires: %{python_module h5py} BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: c++_compiler BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -52,10 +54,10 @@ sed -i -e "s:'test/test:'test:g" test/index_test.py %build sed -i '/setup_requires/d' setup.py export CFLAGS="%{optflags} -fno-strict-aliasing" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check