public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/sugar-abacus] rawhide: Stop using deprecated python setup.py build/install command in the spec
@ 2026-08-17 14:39 Chihurumnaya Ibiam
  0 siblings, 0 replies; only message in thread
From: Chihurumnaya Ibiam @ 2026-08-17 14:39 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/sugar-abacus
            Branch : rawhide
            Commit : 4c1cc2037a36ff6a1ef516d10a8928b10bfc5cce
            Author : Chihurumnaya Ibiam <ibiam@sugarlabs.org>
            Date   : 2026-08-17T15:39:21+01:00
            Stats  : +7/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/sugar-abacus/c/4c1cc2037a36ff6a1ef516d10a8928b10bfc5cce?branch=rawhide

            Log:
            Stop using deprecated python setup.py build/install command in the spec

Signed-off-by: Chihurumnaya Ibiam <ibiam@sugarlabs.org>

---
diff --git a/sugar-abacus.spec b/sugar-abacus.spec
index 3a28966..454c5b9 100644
--- a/sugar-abacus.spec
+++ b/sugar-abacus.spec
@@ -29,13 +29,18 @@ below (it uses base 20).
 
 sed -i 's/python/python3/' abacus.py
 
+%generate_buildrequires
+%pyproject_buildrequires
+
 %build
-python3 ./setup.py build
+#python3 ./setup.py build
+%pyproject_wheel
 
 # %find_lang org.sugarlabs.AbacusActivity
 
 %install
-python3 ./setup.py install --prefix=%{buildroot}/%{_prefix}
+#python3 ./setup.py install --prefix=%{buildroot}/%{_prefix}
+%pyproject_install
 rm %{buildroot}%{_prefix}/share/applications/*.desktop || true
 
 # https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-17 14:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-17 14:39 [rpms/sugar-abacus] rawhide: Stop using deprecated python setup.py build/install command in the spec Chihurumnaya Ibiam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox