Le mercredi 16 août 2006 à 11:34 +0200, Brian Sutherland a écrit :
> smart-notifier has XS-Python-Version set to 2.4 but the binary
> package gets Python-Version "current" if built with python2.4 as the
> default python.
> 
> In my tests with python2.3 as the default, Python-Version is set to 2.4.
> 
> In both cases there is no python dependency (only python2.4).
> 
> So anyone installing smart-notifier built with python2.4 as the defualt
> on a machine with python2.3 as the default experiences breakage when
> python-central tries to compile the bytecode for python2.3.
> 
> It seems to me that dh_python should set Python-Version to x.y if
> XS-Python-Version is x.y regardless of what the current default python
> is. At least that is what I would have expected.

This is one of the reasons why I don't like the X?-Python-Version
fields. There is no way for the build process to tell between those two
cases:
     1. building for python2.4 only as we build for one version only and
        python2.4 is the default version;
     2. building for python2.4 only as this is the only supported
        version.

If we apply the solution you describe, case 2 will be fixed, but case 1
will break: when upgrading the default python interpreter, the module
will not be available for the new version.

Thus, we need separate interfaces to tell the helper tools about that.
The -V flag was reintroduced in dh_pysupport (in 0.4) to fix this case,
and I believe something similar should be done in dh_pycentral as well -
dh_python is doomed to be removed anyway.
-- 
 .''`.           Josselin Mouette        /\./\
: :' :           [EMAIL PROTECTED]
`. `'                        [EMAIL PROTECTED]
  `-  Debian GNU/Linux -- The power of freedom

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

Reply via email to