I had a bug filed that a Python package I'm maintaining cannot be
rebuilt using 'rpmbuild --rebuild'.  The failure was that the *.pyc
and *.pyo files are missing.

After a lot of head-scratching and debugging it turns out that
brp-python-bytecompile was not running, and that happens because the
RPM macro %{__os_install_post} didn't contain a call to
brp-python-bytecompile.  This macro exists in base RPM, but is
overridden/extended when redhat-rpm-config is installed.

Installing redhat-rpm-config fixes the problem for the bug reporter.

However this raises some questions:

 - Should this package explicitly BR redhat-rpm-config?

 - Should all Python packages explicitly BuildRequire redhat-rpm-config?

 - Should this package not be packaging up the *.py[co] files?

 - Is this a bug in redhat-rpm-config/Python/RPM/Fedora?

 - Should I just ignore this because it builds fine in Koji?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Reply via email to