Re: remove source files

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

 



On Thursday 11 February 2010, Tom Lane wrote:
> Ville =?iso-8859-1?q?Skytt=E4?= <ville.skytta@xxxxxx> writes:
> > On Thursday 11 February 2010, Scott Frankel wrote:
> >> I'm using a simple spec file to package a python-based application for
> >> distribution.  When passed to rpmbuild, it creates an rpm with both
> >> source (.py) and bytecode compiled (.pyc) files.  I'd like to remove
> >> the source files from the rpm.
> >
> > Try this in %files:
> > %exclude /path/to/stuff/*.py
> 
> Even easier: after running "make install" in the specfile script, just
> "rm" the files you don't want from the install tree.

In the case of Python packages, that will break automatic byte-compilation of 
missing *.pyc and *.pyo.
--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux