Ubuntu python version

Matt Zimmerman mdz at ubuntu.com
Wed Feb 2 12:15:50 CST 2005


On Wed, Feb 02, 2005 at 11:36:53AM +0100, Vincenzo Di Massa wrote:

> Please tell me if I understand how it works.
> 
> If I want to develop a package MyPackage wihch depends on AnotherPackage and 
> there are packagesAnotherPackage AnotherPackage1.0 AnotherPackage2.0:
> - if I want to depend on >=1 I just depend on AnotherPackage
> - if I want to dependo on <=1  I must depend on AnotherPackage1.0

The "python2.3" package provides /usr/bin/python2.3.  If your package uses
#!/usr/bin/python2.3, you should depend on this package.

The "python2.4" package provides /usr/bin/python2.4.  If your package uses
#!/usr/bin/python2.4, you should depend on this package.

The "python" package provides /usr/bin/python.  If your package uses
#!/usr/bin/python, you should depend on this package.

In all of these cases, you may use inequalities to declare a dependency on
particular versions of these packages.  If your package contains a
#!/usr/bin/python program which only works with python 2.4 or later, you
could use Depends: python (>= 2.4).  If your package contains a
#!/usr/bin/python2.3 program which only works with python 2.3.3 or later,
you could use Depends: python2.3 (>= 2.3.3).

I hope this clarifies things for you.

> There should be a rule preventing confusion so that packages that just
> want mysql or python must not depend on version number with <=, if they
> want to depend on something with <= they should depend on the right
> vesion.

In the case of Python programs, dependencies with <= or << don't seem to
make much sense to me.  Matthias, can you explain the reasons why many
packages are made this way?

-- 
 - mdz



More information about the ubuntu-devel mailing list