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

Re: Dépendances : noms vs versions de paquets



* Latreyte David [18:23 17/08/03 CEST]:
Le Dimanche 17 Août 2003 15:49, Nicolas Évrard a écrit :


Cela ne fonctionne pas sur le principe des alternatives. Un programme
qui nécessite python2.1 utilisera #!/usr/bin/python2.1, ses modules se
trouvent soit dans /usr/lib/... soit dans
/usr/lib/python2.1/site-packages


Salut,

'lut

celà pose tout de même un problème (j'avoue que je vais chercher la petite bête) : si on utilise des modules (par exemple python-tk) la mise à jour n'est pas faite automatiquement.

Ah si, tu as pu installer ton python. Pour python-tk, il faut attendre
que le mainteneur fasse l'upload comme il faut.

mats@Aqua:~$ dpkg -l python*|grep ii
ii  python         2.3-4          An interactive high-level object-oriented la
ii  python-gtk     0.6.11-11      GTK support module for Python
ii  python-numeric 23.0-7         Numerical (matrix-oriented) Mathematics for
ii  python2.1      2.1.3-20       An interactive high-level object-oriented la
ii  python2.1-xml  0.8.2-3        XML tools for Python (2.1.x)
ii  python2.1-xmlb 2.1.3-20       XML support included in Python (v2.1)
ii  python2.2      2.2.3-3        An interactive high-level object-oriented la
ii  python2.2-nume 23.0-5         Numerical (matrix-oriented) Mathematics for
ii  python2.2-tk   2.2.3-3         Tkinter - Writing Tk applications with Pyth
ii  python2.3      2.3-4          An interactive high-level object-oriented la

python pointe maintenant vers 2.3 alors que les modules, tk en particulier pointent toujours sur 2.2. Un simple appel à un programme utilisant l'un de ces modules déclenche bien sur une erreur.

C'est tout à fait normal. Pour éviter un tel désagrément tu devrais
installer python-tk car d'après la Python Policy :

    A package with a name `python-<foo>' will always provide the module
    <foo> for the default Debian Python version of the distribution.
    I.e.  the package will extend the function of `/usr/bin/python'
    (which is installed by the package `python').

    The system of dependencies of the default packages is robust
    against upgrades, but introduces a strong dependency: I.e.  an
    upgrade of the `python' package will be hold back as long as there
    are still default modules packages left over on the system that
    can't be upgraded to the new version.

Ce qui aurait dû t'empêcher d'installer python2.3

--
(°>  Nicolas Évrard
/ )  Liège - Belgique
^^

Attachment: pgpfo_o2ADhnm.pgp
Description: PGP signature


Reply to: