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

Re: Bug#372658: python-central has a triangular dependency with python and python2.3



On Sat, 17 Jun 2006, Matthias Klose wrote:
> > python-central 	:Depends: python (>= 2.3.5)
> > python 	        :Depends: python2.3 (>= 2.3.5-1)
> > python2.3 	:Depends: python-central
> > Circular dependencies are known to cause problems during upgrade between
> > stable releases, so we should try to get rid of them.  
> 
> both python-central and python-support are implemented in python, and
> it's unlikely these will be reimplemented in perl ;)
> 
> If we still want/have to to get rid of this dependency, we have to
> implement some kind of hooks for installation, removal and update of
> the default python version, i.e. place scripts into
> /usr/share/python/runtime.d/ of the form:
> 
>  - <runtime>.rtinstall (run after a runtime is installed)
>  - <runtime>.rtremove (run before a runtime is removed)

the rtinstall/rtremove script need a <rtversion> parameter I suppose.

>  - <package>.update <old runtime> <new runtime> (run on a change
>    of the default python version)
> 
> The <package>.update scripts currently would be python-central.update
> and python-support.update, but could be custom scripts for packages.
> The <runtime>.rtremove scripts must not rely on any support tool or
> python.
> 
> The 'pycentral pkginstall/pkgremove' calls in python2.3/python2.4 have
> to be replaced by script code to byte-compile/remove byte-code. Other
> packages do not have to be changed.

This would be quite elegant and would allow better integration of
python-support. I'm all for it.

Cheers,
-- 
Raphaël Hertzog

Premier livre français sur Debian GNU/Linux :
http://www.ouaza.com/livre/admin-debian/



Reply to: