Skip to content

Commit 805006a

Browse files
committed
fix: [rpm] move a hack to tweak pyproject.toml before %generate_buildrequires
1 parent bf25ca9 commit 805006a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/package.spec.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ HTML documentation for %{name}.
5858

5959
%prep
6060
%autosetup -n %{pkgname}-%{version}
61+
# hack: To avoid build-time error with the later license identifier format in
62+
# pyproject.toml since PEP 639.
63+
sed -i.save -r '/^license = /,/^]/s/^.*/# &/g' pyproject.toml
6164

6265
%generate_buildrequires
6366
%pyproject_buildrequires -t
6467

6568
%build
66-
# hack: To avoid build-time error with the later license identifier format in
67-
# pyproject.toml since PEP 639.
68-
sed -i.save -r '/^license = /,/^]/s/^.*/# &/g' pyproject.toml
6969
%pyproject_wheel
7070

7171
%if %{with doc}

0 commit comments

Comments
 (0)