RPM Build Problem: installed but unpackaged .pyo and .pyc files

Beth Stetzler <[email protected]> Tue, 05 Aug 2008 11:41:43 -0400
Newsgroups gmane.linux.redhat.rpm.general
Organization U.S. Naval Observatory
Message-ID <[email protected]>
Hello,

I have made a .spec file to build an RPM that is to install some shell 
scripts and Python scripts.  The Python scripts are giving BUILD 
errors.  The errors say that the .pyo and .pyc files are installed but 
not packaged.  I understand Python compiles these at runtime.  I'm 
hoping someone can assist with how to fix these problems.  I have tested 
the .py scripts, but I do not see the .pyc and .pyo files.  They are not 
in the tarball I created.  Would Python have put them in a random 
location?  My Python version is 2.4 and the library directory site 
packages is /usr/lib/python2.4/site-packages.

Thanks.