[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



Bill Allombert writes:
> Package: python-central
> Version: 0.4.3
> Severity: important
> 
> Hello Matthias,
> 
> There is a triangular dependency between python-central, python and python2.3:
> 
> 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)
 - <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.

  Matthias



Reply to: