[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
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@fridu.net] Sent: Monday, September 16, 2019 1:16 PM To: starlingx-discuss@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@lists.starlingx.io http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
Albert, no I cheated I used fdupes to go around the package. But concerning the extend of the issue a real correction would be a good idea. Regards Dominig On 17/09/2019 15:23, Bailey, Henry Albert (Al) wrote:
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@fridu.net] Sent: Monday, September 16, 2019 1:16 PM To: starlingx-discuss@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
participants (2)
-
Bailey, Henry Albert (Al)
-
Dominig ar Foll (Intel Open Source)