On Fri, 2003-08-08 at 22:31, Alexandre Fayolle wrote:
> On Fri, Aug 08, 2003 at 01:52:40PM +0200, Matthias Urlichs wrote:
> > Hi,
> > 
> > Donovan Baarda wrote:
> > > It would be nice if you could specify dependencies as follows;
> > >
> > > Depends: (python2.2, python2.2-xmlbase, python-textwrap) | (python2.3),
> > > python-roman
> > >
> > Hmm. You can, just distribute the stuff out (standard Boole algebra):
> > Depends: python2.3 | python2.2, python2.2-xmlbase | python2.3,
> >     python-textwrap | python2.3, python-roman

I am tired... why didn't I remember that.

> > It looks ugly as hell, though, and I'll have to check whether it really 
> > does 
> > the right thing when you have python2.2 installed and pull in 
> > python-docutils.
> 
> I'm not sure this will work if I try to use docutils as a library in
> another package supporting only python2.2. 
[...]

The full dependancies for python-docutils are pretty hairy. I think you
will need the three packages as follows to support (almost) everything;

Package: python-docutils
Depends: python (>=2.2), python (<<2.4), python2.3 | python2.2,
python2.2-xmlbase | python2.3, python-textwrap | python2.3, python-roman
(this is the main package that puts all the modules in
/usr/lib/site-python)

Package: python2.2-docutils
Depends: python-docutils, python2.2, python2.2-xmlbase, python-textwrap
(this is just a wrapper to ensure proper support for python2.2)

Package: python2.3-docutils
Depends: python-docutils, python2.3
(this is just a wrapper to ensure proper support for python2.3)

This allows you to support python (2.2), python (2.3), python2.2, and
python2.3. The only limitation is python-distutils requires the default
python, ie you can't install python2.2-distutils without python (2.3)
and hence python2.3.

-- 
Donovan Baarda <[EMAIL PROTECTED]>


Reply via email to