From a7d914a182fd314a0166673aaad1a7b4a8bd00eded48977a09b4fbd95f1506e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 May 2025 15:12:49 +0000 Subject: [PATCH] Accepting request 1277150 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277150 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-annoy?expand=0&rev=29 --- python-annoy.changes | 5 +++++ python-annoy.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) 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