<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 11/14/2013 03:56 AM, Richard W.M.
      Jones wrote:<br>
    </div>
    <blockquote class=" cite" id="mid_20131114085622_GG9356_redhat_com"
      cite="mid:20131114085622.GG9356@redhat.com" type="cite">
      <pre wrap="">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
</pre>
    </blockquote>
    I noticed some odd things about the whole brp-python* setup : for
    instance, there are two very similar versions of
    brp-python-hardlink: one from rpm-build-4.11.1-3.fc19.x86_64 and
    another from redhat-rpm-config-9.1.0-46.1.fc19.noarch ; they seem to
    be doing the same thing, the only difference is <br>
    &lt;        pyo="${pyc%c}o"<br>
    ---<br>
    &gt;        pyo="$(echo $pyc | sed -e 's/.pyc$/.pyo/')"<br>
    <br>
    No big deal but it looks like someone who knows this area should
    review and/or clean it up.<br>
    <br>
    <br>
  </body>
</html>