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

Re: pure python and postinst



On Tue, Nov 19, 2002 at 09:06:55PM -0600, Graham Wilson wrote:
> On Tue, Nov 19, 2002 at 08:17:28PM -0500, Steve M. Robbins wrote:
> > Howdy,
> 
> hello.
> 
> > One thing I noticed in the packages (that isn't covered in the policy)
> > is the practice of deleting the ".pyc" files in debian/rules, and
> > then running "compileall.py" in the postinst.  Would someone comment on
> > this?  Is it a requirement -- is it a bug to include the compiled
> > python files in the .deb?
> 
> they are not included because that would just be extra space taken up in
> the .deb file for something which can be generated on the users machine.
> 
> also, different versions of python might havent different formats for
> the bytecode (.pyc files) and thus the output of the compilation process
> would be different depending on what version of python is installed.

True.  However, the compiled files live under /usr/lib/pythonX.Y, so I
hadn't expected this to be an issue.

> is there any reason you want the files installed?

No.  I was just curious.  

The proposed python policy doc is very explicit on many things such as
the package naming scheme, how to support one or many python versions,
and the like.  But it is silent about the compiled files.


Thanks,
-Steve



Reply to: