[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



Raphael Hertzog writes:
> On Sat, 17 Jun 2006, Josselin Mouette wrote:
> > > > 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 ;)
> > 
> > Sure, but why does python2.3 need to depend on python-central? Shouldn't
> > it be the case only for packages using pycentral?
> 
> Because python2.3 postinst uses pycentral to indicate that a new "python
> version" is available (likewise for removal) which in turn will
> byte-compile the .py files for the new version or remove the .pyc of that
> python version.

right, which is now done by script code directly in the
postinst/preinst files, honoring debian_config's byte-compile option
and only touching the files which are installed by the package.

The circular dependencies are gone now. See the packages at 

  deb http://people.debian.org/~doko/pythontst ./

- python-central now includes a copy of the pyversions.py script to
  remove the dependency on a specific version of python.

- scripts placed in /usr/share/python/runtime.d can be executed

  - after the installation of a runtime: *.rtinstall, passed
    parameters are: rtinstall <runtime> <oldversion> <newversion>

  - before the removal of a runtime: *.rtremove, passed parameters
    are: rtremove <runtime>

  - after a runtime change: *.rtupdate, passed parameters are:
    rtupdate <oldruntime> <newruntime>

Matthias



Reply to: