On 2020-07-18 12:11 p.m., chedi toueiti wrote:
The error in your build.log ()
error: Installed (but unpackaged) file(s) found:
   /usr/lib64/python/site-packages/partedit.py
   /usr/lib64/python/site-packages/partinspect.py
   /usr/lib64/python/site-packages/partjson.py
    Installed (but unpackaged) file(s) found:
   /usr/lib64/python/site-packages/partedit.py
   /usr/lib64/python/site-packages/partinspect.py
   /usr/lib64/python/site-packages/partjson.py


Indicate that you have installed some files but did not list them in the %files section, alghouth,
These paths are not the standard install paths for python files.

That is what I figure out after considering the Fedora Python guideline.
going by the line 

#Remove files from unversioned python directory
rm -f %{buildroot}%{python_sitearch}/*.py

I think you were intending to delete them to but the macro

%{python3_sitearch} expands to /usr/lib64/python3.X/site-packages on 64bit architectures (e.g. x86_64)  and /usr/lib/python3.X/site-packages on 32bit.

so maybe update your install script or replace the deletion line as following
rm -f %{buildroot}/usr/lib64/python/site-packages/*.py

That suggestion did the trick as seen on the scratch build:

https://koji.fedoraproject.org/koji/taskinfo?taskID=47394295

Thank you for your help.

-- 
Luya Tshimbalanga
Fedora Design Team
Fedora Design Suite maintainer