How to add a python script to an RPM in the right way?

Dotan Barak dotanba at
Wed Dec 24 15:35:03 UTC 2008

I attached the spec file.

The problem is that sometimes the bytecode files of python (pyc/pyo)
aren't being created and the RPM creation fails ...

Thanks for the quick response

On Wed, Dec 24, 2008 at 4:49 PM,  <Greg_Swift at> wrote:
>> I'm trying to add several python scripts to an RPM.
>> For all of the scripts but one, .pyc and .pyo files are being created.
>> For a specific file (every time the same file) the .pyc and .pyo are
>> sometimes being generated
>> (i don't really understand why the behavior is not consistent).
>> Can anyone know how to handle this issue?
> could you please provide your spec file?
> -greg
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: my-rpm.spec
Type: application/octet-stream
Size: 1408 bytes
Desc: not available
Url : 

More information about the Rpm-list mailing list