From 24619d1643c961f8c8020f3bd583bd5778fa0332 Mon Sep 17 00:00:00 2001 From: oerv Date: Sun, 24 May 2026 00:52:31 +0800 Subject: [PATCH] SPECS: python-pymilvus: fix build failure --- SPECS/python-pymilvus/python-pymilvus.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/SPECS/python-pymilvus/python-pymilvus.spec b/SPECS/python-pymilvus/python-pymilvus.spec index 8db1506936..04e48800e0 100644 --- a/SPECS/python-pymilvus/python-pymilvus.spec +++ b/SPECS/python-pymilvus/python-pymilvus.spec @@ -1,6 +1,7 @@ # SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) # SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors # SPDX-FileContributor: purofle +# SPDX-FileContributor: Zitao Zhou # # SPDX-License-Identifier: MulanPSL-2.0 @@ -35,9 +36,22 @@ Provides: python3-%{srcname} = %{version}-%{release} %description Python SDK for Milvus. +%prep +%autosetup -n %{srcname}-%{version} +sed -i '/version.*attr.*_version_helper/d' pyproject.toml + %generate_buildrequires +export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires +%build +export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files -l %{srcname} + %files -f %{pyproject_files} %doc README.md %license LICENSE