Mandriva Linux Archives: cooker@mandrivalinux.org

Mandriva Linux: cooker@mandrivalinux.org


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

  • From: Michael Scherer
  • Subject: [Cooker] Python policy ( was : Re: [RPM] cooker main/release python-twisted-core-2.5.0-3mdv2008.1 )
  • Date: 21 Mar 2008 09:31:45 -0000

Le vendredi 21 mars 2008 à 01:36 +0100, blino a écrit :
> Michael Scherer <devel@mandriva.com> writes:
> 
> > Name        : python-twisted-core          Relocations: (not relocatable)
> >
> > Michael Scherer <misc@mandriva.org> 2.5.0-3mdv2008.1:
> > + Revision: 189239
> > - rebuild to take less space, blino's request
> 
> Thanks!
> 
> > - split doc and remove .pyc to make some free space on mandriva one
> 
> But why do you remove .pyc files?

You asked me to split doc to get 700 kb, so I tought removing .pyc ( 700
kb too ) would help you too. 
But i will revert this change.

> Don't we have a policy of packaging them?

A policy draft, and I am glad that you mention it, because we should
discuss it :) 

( and of course, implement it before 2008.1 :p )

We have somes choices : 

1) keep the current draft policy, which mean "we ship .py and .pyc"

2) we decide to not ship anything except .py


.pyc should be shipped to prevent "side" effect when someone run python
as root, because this will create a .pyc once the module is loaded. So
the solution was to create them as part of the rpm build, and so ship
them, in order to be able to remove them safely.

on the other hand, this double the size of the rpm ( python-twisted-core
went from 1.4M to 700k ), which as a impact on mandriva one. I think we
could save enough diskspace for one or maybe two locales. This would
also help people to download less, etc.

If we decide 2, we will face the problem of side effect. So one solution
would be to disable the creation of .pyc and .pyo, and make it
conditionnal. This likely requires a patch on python.

So anybody have another proposal, or a opinion ?

> Wouldn't it make the module slower?

Slower to start only, and I do not know how much slower.

Main problem is the autocreation of .pyc and the clutter after rpm
removal.


-- 
Michael Scherer <misc@mandriva.org>



Date Index | Thread Index

Search the archive:



To (un)subscribe from/to the lists:

Sympa mailing lists server.





Looking for a job?