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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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.
>
I usually like my files like this, but you could always go look the some
spec files of other apps that would do the same (off the top of my head one
might be labyrinth).


path/file.py
%ghost path/file.pyc
%ghost path/file.pyo

not sure if there is a better way

-greg


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux