Comment 2 for bug 605327

Revision history for this message
Jan (jan-ellenbeck) wrote :

This is the workaround I use on that system:

=== modified file 'SConstruct'
--- SConstruct 2010-07-19 23:59:03 +0000
+++ SConstruct 2010-07-21 14:12:05 +0000
@@ -30,14 +30,19 @@
             output = subprocess.Popen(["python", "-V"], stderr=subprocess.PIPE).communicate()[1]
             output = output.split()
             version = output[1].split(".")
- self.python["version_major"] = "%s.%s" % (version[0], version[1])
- self.python["version_minor"] = "%s" % (version[2])
+ self.python["version_major"] = "%s.%s" % (version[0], version[1])
         except OSError:
             print
             print "Error!!! Cannot find python command"
             print
             exit(1)

+ try:
+ self.python["version_minor"] = "0"
+ self.python["version_minor"] = "%s" % (version[2])
+ except IndexError:
+ pass
+
         guess_python_config = "python-config"

         if self.lsb["DISTRIB_ID"] == "Ubuntu" and self.lsb["DISTRIB_CODENAME"] == 'lucid':