[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

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



> 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

[Home]     [Kernel List]     [Red Hat Install]     [PAM]     [Red Hat Watch List]     [Red Hat Development]     [Red Hat 9 Bible]     [Red Hat 9 Mailing List]     [Big List of Linux Books]     [Gimp]     [Yosemite News]