Versioned scripts in Zope packages

Arnaud Fontaine arnau at debian.org
Mon May 2 01:26:51 UTC 2011


Hi,

    > 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

Perhaps I should have re-read the Python policy before sending an email,
sorry about that.

    > 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).

I  agree with  you for  repozo. The  versioned scripts  should  be added
whenever it  is relevant. For example for  buildout and zope.testrunner,
it  is definitely  useful and  adding an  extra dependencies  because of
versioned scripts is not a problem in these cases IMO.

You may want  to run buildout with several  different versions of Python
and you usually  do... Yes, you may do  python2.X /usr/bin/buildout, but
in such cases it might be better to have versioned scripts.

    > 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.

That's indeed a problem. I didn't notice that at first.

    >   You forwarded  an email  that  lists even  more reasons  against
    > versioned scripts. Unfortunately, zdaemon is the only zope package
    > I have not fixed in this way :(

I don't  know so much about  zdaemon, so maybe that's  pointless to have
versioned scripts. If  so, I will remove them and  upload it, no problem
at all.

    > 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.

That would be great if you could do it.

Cheers,
--
Arnaud Fontaine
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-zope-developers/attachments/20110502/373825ce/attachment.pgp>


More information about the pkg-zope-developers mailing list