Bug#234876: gdesklets may not use the expected python interpreter

Sylvain Thénault Sylvain Thénault , 234876@bugs.debian.org
Thu, 26 Feb 2004 12:51:50 +0100


On Thursday 26 February à 12:36, Martin Grimme wrote:
> Am Do, den 26.02.2004 schrieb Sylvain Thenault um 11:53:
> > /usr/bin/gdesklets use "#!/usr/bin/env python" instead of
> > "#!/usr/bin/pythonX.Y" where X.Y is the default python version.
> 
> #! /usr/bin/env python
> is IMHO more portable than the hard-coded version
> #! /usr/bin/pythonX.Y
> 
> That's why I'm the using the first variant always. If that causes
> trouble on Debian systems, the Debian maintainer can change this,
> of course.

the problem is that installing gdesklets install libraries for the
default python version. If a user override "python" in its environment
to get another python version by default, gdesklets will fail since it
won't find the librairies. See the section 1.3 of the debian python
policy.

-- 
Sylvain Thénault                               LOGILAB, Paris (France).

http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org