python-six noarch rpm

I have built noarch rpm’s in the past and have never included binaries.
:~> rpm -qil python-six-1.11.0-9.21.2.noarch
Name : python-six
Version : 1.11.0
Release : 9.21.2
Architecture: noarch
Install Date: Wed 21 Apr 2021 03:23:46 PM EDT
Group : Development/Libraries/Python
Size : 104378
License : MIT
Signature : RSA/SHA256, Mon 22 Jul 2019 05:02:34 AM EDT, Key ID 70af9e8139db7c82
Source RPM : python-six-1.11.0-9.21.2.src.rpm
Build Date : Mon 22 Jul 2019 05:01:48 AM EDT
Build Host : sheep22
Relocations : (not relocatable)
Packager : https://www.suse.com/
Vendor : SUSE LLC https://www.suse.com/
URL : http://pypi.python.org/pypi/six/
Summary : Python 2 and 3 compatibility utilities
Description :
Six is a Python 2 and 3 compatibility library. It provides utility
functions for smoothing over the differences between the Python
versions with the goal of writing Python code that is compatible on
both Python versions. See the documentation for more information on
what is provided.
Distribution: SUSE Linux Enterprise 12
/usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info
/usr/lib/python2.7/site-packages/six.py
/usr/lib/python2.7/site-packages/six.pyc <-----<<<<
/usr/lib/python2.7/site-packages/six.pyo
/usr/share/doc/packages/python-six
/usr/share/doc/packages/python-six/CHANGES
/usr/share/doc/packages/python-six/LICENSE
/usr/share/doc/packages/python-six/README.rst
:~>

@dgarvey Hi and welcome to the Forum :slight_smile:
I see the byte compiled file on the OBS version;
https://build.opensuse.org/build/devel:languages:python/SLE_15_SP2/x86_64/python-six/_log

Hi Malcolm,
if this is a binary should it be removed for the noarch rpm?

@dgarvey Hi, as far as I know (since no errors or warnings are emitted from the build log) it’s acceptable to have them present, since they get executed in the python virtual environment.

Doesn’t the module six deal with python 2 and 3 compatibility? I would think this would be an issue considering it would need to be compiled at runtime? Not to mention noarch rpm’s should be just files only.

@dgarvey Hi, no, the python packages are now build per python version 3.6,3.8,3.9 etc, likewise python 2 is considered legacy…