Re: python 2.2 to python 2.3 transition

2003-08-12 Thread Derrick 'dman' Hudson
On Tue, Aug 12, 2003 at 12:38:16PM +1000, Donovan Baarda wrote: | On Mon, 2003-08-11 at 22:03, Matthias Urlichs wrote: | > > Hrm, this could be achieved quite simply, /methinks. It needs little | > > changes in dh_python and some prerm/postinst stuff in the python package | > > (not the pythonX.Y

Re: python 2.2 to python 2.3 transition

2003-08-12 Thread Matthias Urlichs
Hi, Donovan Baarda wrote: > Note that there is currently a bug in dpkg-query where ${Depends} output > is prefixed with some binary garbage... this means your modification > will not match where $PYTHONXY is the first dependency. > Ouch. > I don't believe you could use python in this case... thi

Re: python 2.2 to python 2.3 transition

2003-08-12 Thread Donovan Baarda
On Tue, 2003-08-12 at 12:54, Matthias Urlichs wrote: > Hi, > > Donovan Baarda wrote: > > Using this the python package can "notify" all packages that depend on > > it by calling dpkg-reconfigure on them; > > That would work for me too, of course. > > >> egrep "^install ok installed:[^:]*:.*$PYT

Re: python 2.2 to python 2.3 transition

2003-08-12 Thread Dan Jacobson
> Depending on Python 2.3 when a package works fine with 2.1 and 2.2 > as well is not a good solution in my opinion. Modem users must spend an extra hour downloading just to get a tiny package too.

Re: python 2.2 to python 2.3 transition

2003-08-11 Thread Matthias Urlichs
Hi, Donovan Baarda wrote: > Using this the python package can "notify" all packages that depend on > it by calling dpkg-reconfigure on them; That would work for me too, of course. >> egrep "^install ok installed:[^:]*:.*$PYTHONXY([ ,]|$)" | \ That regexp looks like it should look like this ins

Re: python 2.2 to python 2.3 transition

2003-08-11 Thread Donovan Baarda
On Mon, 2003-08-11 at 22:03, Matthias Urlichs wrote: > Hi, Josselin Mouette wrote: > > > Hrm, this could be achieved quite simply, /methinks. It needs little > > changes in dh_python and some prerm/postinst stuff in the python package > > (not the pythonX.Y package) to rebuild all .pyc's and .pyo'

Re: python 2.2 to python 2.3 transition

2003-08-11 Thread Matthias Urlichs
Hi, Josselin Mouette wrote: > Hrm, this could be achieved quite simply, /methinks. It needs little > changes in dh_python and some prerm/postinst stuff in the python package > (not the pythonX.Y package) to rebuild all .pyc's and .pyo's in this > directory upon upgrade. > > Matthias, do you think

Re: python 2.2 to python 2.3 transition

2003-08-11 Thread Josselin Mouette
Le lun 11/08/2003 à 01:08, Donovan Baarda a écrit : > The recently suggested alternative of putting modules in > /usr/lib/site-python (or wherever) with only one set of *.pyc's for > the default python is much simpler. It does rely on "root" only using > the default python to avoid re-compiling pyc

Re: python 2.2 to python 2.3 transition

2003-08-11 Thread Josselin Mouette
Le lun 11/08/2003 à 01:04, Donovan Baarda a écrit : > you end up with multiple packages where the only difference is the > versioned depends on python not very efficient. I'm not saying it is efficient, but it is simple and it works. -- .''`. Josselin Mouette/\./\ : :' :

Re: python 2.2 to python 2.3 transition

2003-08-10 Thread Donovan Baarda
On Sun, Aug 10, 2003 at 02:58:21PM +0200, Matthias Klose wrote: > Donovan Baarda writes: > > Does anyone want me to contibute some code to try and do this? I think > > the "python-central" stuff has most of the code to handle this, it just > > needs a little bit of tweaking. > > sure, that would b

Re: python 2.2 to python 2.3 transition

2003-08-10 Thread Donovan Baarda
On Sun, Aug 10, 2003 at 09:45:29PM +0200, Josselin Mouette wrote: > Le dim 10/08/2003 ? 16:12, Lars Wirzenius a ?crit : > > Depending on Python 2.3 when a package works fine with 2.1 and 2.2 as > > well is not a good solution in my opinion. It prevents, for example, > > being able to use the packag

Re: python 2.2 to python 2.3 transition

2003-08-10 Thread Donovan Baarda
On Sun, Aug 10, 2003 at 05:26:23PM +0200, Matthias Urlichs wrote: > Hi, Lars Wirzenius wrote: > > > (There will be a problem when the default version of Python changes. I > > don't think we have a way to deal with that.) > > Why not simply call compileall.py for each dirctory in the PYTHONPATH >

Re: python 2.2 to python 2.3 transition

2003-08-10 Thread Josselin Mouette
Le dim 10/08/2003 à 16:12, Lars Wirzenius a écrit : > Depending on Python 2.3 when a package works fine with 2.1 and 2.2 as > well is not a good solution in my opinion. It prevents, for example, > being able to use the package on woody, even if it is uploaded only into > stable. (This happens to be

Re: python 2.2 to python 2.3 transition

2003-08-10 Thread Matthias Urlichs
Hi, Lars Wirzenius wrote: > (There will be a problem when the default version of Python changes. I > don't think we have a way to deal with that.) Why not simply call compileall.py for each dirctory in the PYTHONPATH from "python"s postinst? -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de

Re: python 2.2 to python 2.3 transition

2003-08-10 Thread Lars Wirzenius
On su, 2003-08-10 at 15:56, Josselin Mouette wrote: > If you can provide a good solution to achieve this, it will surely be > welcome. In the meantime, please don't do what you describe with > packages shipping .py files. You should depend on python (>= 2.3), > python (<< 2.4) - this can be done au

Re: python 2.2 to python 2.3 transition

2003-08-10 Thread Lars Wirzenius
I subscribe debian-python. Please don't Cc me when you reply to the list. On su, 2003-08-10 at 13:06, Matthias Klose wrote: > Lars Wirzenius writes: > > Um, yeah, it does contain a .pyc. I don't think it should: the postinst > > compiles the eoc.py file. The inclusion of the .pyc file seems like a

Re: python 2.2 to python 2.3 transition

2003-08-10 Thread Josselin Mouette
Le dim 10/08/2003 à 14:44, Donovan Baarda a écrit : > There are probably some packages that have "Depends: python" that work > with a whole variety of versions of python. Provided they compile their > modules with "/usr/bin/python" in their postinst, and remove the pyc's > and pyo's in their postrm

Re: python 2.2 to python 2.3 transition

2003-08-10 Thread Donovan Baarda
On Sun, 2003-08-10 at 17:55, Matthias Klose wrote: > This seems to be a common misunderstanding. Therefore the CC to > debian-python that I have something as a reference. [...] > > As far as I know, it already works with Python 2.3. And 2.2. And 2.1. I > > like the fact that the same package works

Re: python 2.2 to python 2.3 transition

2003-08-10 Thread Matthias Klose
Lars Wirzenius writes: > Um, yeah, it does contain a .pyc. I don't think it should: the postinst > compiles the eoc.py file. The inclusion of the .pyc file seems like a > bug due to unforeseen interaction with the upstream Makefile's install > target. I'll have to remove the .pyc from the .deb in t

Re: python 2.2 to python 2.3 transition

2003-08-10 Thread Lars Wirzenius
On su, 2003-08-10 at 10:55, Matthias Klose wrote: > This seems to be a common misunderstanding. Therefore the CC to > debian-python that I have something as a reference. ACK. (I'm on -python, so further Cc's are not necessary.) > Lars Wirzenius writes: > > As far as I know, it already works with

Re: python 2.2 to python 2.3 transition

2003-08-10 Thread Matthias Klose
This seems to be a common misunderstanding. Therefore the CC to debian-python that I have something as a reference. Lars Wirzenius writes: > On la, 2003-08-09 at 03:22, Matthias Klose wrote: > > Please upgrade your packages soon, or ask on debian-python for NMU's or > > help. > > If the package d

Re: python 2.2 to python 2.3 transition

2003-08-09 Thread Josselin Mouette
Le sam 09/08/2003 à 02:24, Matthias Klose a écrit : > Please upgrade your packages soon, or ask on debian-python for NMU's or help. > If the package doesn't work with 2.3, please explicitely depend on the 2.2 > packages. > > I'll do NMU's for some "base" packages, if I see missing these packages.