On Mon, Mar 29, 2010 at 4:36 PM, Andreas Tille <andr...@fam-tille.de> wrote:
> On Mon, Mar 29, 2010 at 03:46:20PM -0300, Thiago Franco Moraes wrote: > > > > I fixed some of lintian problems. One of the problems that remains is: > > > > W: libsigar: package-installs-python-pyc > > usr/lib/python2.6/dist-packages/sigar.pyc > > N: > > N: Compiled python source files should not be included in the package. > > N: These files should be removed from the package and created at > package > > N: installation time in the postinst. > > N: > > N: Severity: normal, Certainty: certain > > > > How can I only compile in installation time? I'm using this command in > rule > > file to install the files: > > > > cd $(CURDIR)/bindings/python && python setup.py install > --install-layout=deb > > --root=$(CURDIR)/debian/$(PACKAGE) > > I have limited experience with python packages but the principle is that > the *.pyc files will be created at package install time in the postinst > script. This is done by python-support and is described in the Debian > Python Policy[1]. Perhaps you might have a look into this document and > if something remains unclear, it is a good idea to ask on > debian-mentors. > > Kind regards > > Andreas. > > [1] http://www.debian.org/doc/packaging-manuals/python-policy/ > > -- > http://fam-tille.de > > Ok, Andreas, I'm reading that.