* 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.

[EMAIL PROTECTED]:~$ 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: pgpTjKmYZey71.pgp
Description: PGP signature

Répondre à