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':
This is the workaround I use on that system:
=== modified file 'SConstruct' Popen([ "python" , "-V"], stderr= subprocess. PIPE).communica te()[1]
version = output[ 1].split( ".") "version_ major"] = "%s.%s" % (version[0], version[1]) "version_ minor"] = "%s" % (version[2]) "version_ major"] = "%s.%s" % (version[0], version[1])
exit( 1)
--- SConstruct 2010-07-19 23:59:03 +0000
+++ SConstruct 2010-07-21 14:12:05 +0000
@@ -30,14 +30,19 @@
output = subprocess.
output = output.split()
- self.python[
- self.python[
+ self.python[
except OSError:
print
print "Error!!! Cannot find python command"
print
+ try: "version_ minor"] = "0" "version_ minor"] = "%s" % (version[2])
guess_ python_ config = "python-config"
+ self.python[
+ self.python[
+ except IndexError:
+ pass
+
if self.lsb[ "DISTRIB_ ID"] == "Ubuntu" and self.lsb[ "DISTRIB_ CODENAME" ] == 'lucid':