[Starlingx-discuss] huge number of duplicated .pyo and .pyc files in packages

Bailey, Henry Albert (Al) Al.Bailey at windriver.com
Tue Sep 17 13:23:00 UTC 2019


I didn’t see if anyone already replied to your email

Did you already try  updating your Makefile or spec files with PYTHONDONTWRITEBYTECODE

https://docs.python.org/2/using/cmdline.html#envvar-PYTHONDONTWRITEBYTECODE

That env setting exists in python2 and python3.
Al

-----Original Message-----
From: Dominig ar Foll (Intel Open Source) [mailto:dominig.arfoll at fridu.net] 
Sent: Monday, September 16, 2019 1:16 PM
To: starlingx-discuss at lists.starlingx.io
Subject: [Starlingx-discuss] huge number of duplicated .pyo and .pyc files in packages

Hello,

I have just reworked the package "starlingx-dashboard" to read source
from git.
At build time, I have 189 warning which leads to an error (badness >100)
which is well deserved.

Obviously I can hide the error with an %fdupes macro but I do not like it.

Do we need all those duplication in the installed packages ?
Could it be made a bit cleaner by the package owner ?

Thanks.

-- 
Dominig ar Foll
Senior Software Architect
Intel Open Source Technology Centre

....
[   11s] starlingx-dashboard.noarch: W: files-duplicate /usr/lib/python2.7/site-packages/starlingx_dashboard/templatetags/getvalue.pyo /usr/lib/python2.7/site-packages/starlingx_dashboard/templatetags/getvalue.pyc
[   11s] starlingx-dashboard.noarch: W: files-duplicate /usr/lib/python2.7/site-packages/starlingx_dashboard/utils/__init__.pyo /usr/lib/python2.7/site-packages/starlingx_dashboard/utils/__init__.pyc
[   11s] starlingx-dashboard.noarch: W: files-duplicate /usr/lib/python2.7/site-packages/starlingx_dashboard/utils/objectify.pyc /usr/lib/python2.7/site-packages/starlingx_dashboard/utils/objectify.pyo
[   11s] starlingx-dashboard.noarch: W: files-duplicate /usr/lib/python2.7/site-packages/starlingx_dashboard/version.pyc /usr/lib/python2.7/site-packages/starlingx_dashboard/version.pyo
[   11s] starlingx-dashboard.noarch: W: no-version-in-last-changelog
[   11s] starlingx-dashboard.src: W: no-version-in-last-changelog
[   11s] The latest changelog entry doesn't contain a version. Please insert the
[   11s] version that is coherent with the version of the package and rebuild it.
[   11s] ...
[   11s] 2 packages and 0 specfiles checked; 1 errors, 189 warnings.
[   11s] starlingx-dashboard.noarch: E: files-duplicated-waste (Badness: 100) 916345




_______________________________________________
Starlingx-discuss mailing list
Starlingx-discuss at lists.starlingx.io
http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss


More information about the Starlingx-discuss mailing list