Versioned scripts in Zope packages

Brian Sutherland brian at vanguardistas.net
Mon May 2 08:04:11 UTC 2011


On Thu, Apr 28, 2011 at 06:27:18PM +0300, Gediminas Paulauskas wrote:
> Python Policy states that "Python scripts ... not depending on a
> specific Python version should use python (without a version) as the
> interpreter name."
> 
> http://www.debian.org/doc/packaging-manuals/python-policy/ch-python.html#s-interpreter_name
> http://www.debian.org/doc/packaging-manuals/python-policy/ch-programs.html
> 
> This supported my wish to NOT have versioned scripts, they are equal
> anyway. Especially the ZODB scripts, why do you need a repozo2.6?
> There is a database, and there are database maintenance and debug
> scripts. Who cares what python version they use? Why force an admin to
> choose a version they "want"?
> 
> buildout or zope-testrunner -- yes, you may want to use a specific
> python version to test with either python version, or if something
> does not work with python 2.7 (but that has to be fixed, because 2.7
> is the default in Ubuntu 11.04). If it is the case,  you can run
> "python2.6 /usr/bin/zope-testrunner". I see no reason why the only
> script that a package installs is versioned. Especially in Ubuntu
> 10.10, where only one python version was supported (2.6).
> 
> Another reason is that versioned scripts add dependency on all
> supported python versions (https://bugs.launchpad.net/bugs/761680).
> Most users do not need to have two versions of python installed. So
> this was a bug.

These are good arguments against versioned scripts.
 
> > Thanks for your work, it is greatly appreciated!
> 
> Thank You!
>  
> Sorry I work alone in Ubuntu and have not contribute much back to
> Debian. Ubuntu is the primary target for SchoolTool, which is written
> in Zope and the only reason I work on Zope packages at all. Now that
> Ubuntu 11.04 is out, I may commit my changes to pkg-zope, but feel
> free to take them yourself.

It took quite some time to port your Ubuntu changes for the packages I
have looked at so far. Would you mind at least committing them to the
pkg-zope repository in future?

I don't mind if you then only upload to Ubuntu.

I think it'll help both sides if we work on a common repository rather
than forking our efforts. 

-- 
Brian Sutherland



More information about the pkg-zope-developers mailing list