Comment 1 for bug 605327

Revision history for this message
Daniel Bültmann (daniel.bueltmann) wrote : Re: [openWNS-bugsquad] [Bug 605327] [NEW] Python version detection broken on systems that do not report the minor version

Patch please ;)

I think we can make the minor version optional. The code that decides
something depending on the python version only looks at the major
version number. Could you check this and provide the patch if
compilation works on SuSe?

Regards,
  Daniel

On 07/14/2010 11:12 AM, Jan wrote:
> Public bug reported:
>
> The new python version detection mechanisms does not work on systems
> where python only reports, e.g., 2.6 instead of, e.g., 2.6.5. This
> happens for example on openSUSE 11.1
>
> cat /etc/issue
> Welcome to openSUSE 11.1 - Kernel \r (\l).
>
> This is what happens:
>
> openwns-sdk> ./playground.py install
> Executing: scons dbg --warn=no-missing-sconscript -j 8 default
> scons: Reading SConscript files ...
>
> WARNING Cannot acces /etc/lsb-release. Unknown distribution. Trying
> fallback.
>
> IndexError: list index out of range:
> File "/tmp/build/openwns-sdk/SConstruct", line 61:
> envInfo = EnvInfo()
> File "/tmp/build/openwns-sdk/SConstruct", line 33:
> self.python["version_minor"] = "%s" % (version[2])
>
> The reason is that in the python version output there is only one "."
> and thus no version[2]:
>
> openwns-sdk> python --version
> Python 2.6
>
> ** Affects: openwns-sdk
> Importance: Undecided
> Status: New
>