artemp/mapnik — Issue #164: scons fails with python 2.6
Author: artemp
Created: 2011-10-11 16:01:13+00:00
State: open
Labels: Scons_Build_Scripts

Scons fails with python 2.6. This occurs with both svn and 0.5.1.

The following is the output from attempting to build 0.5.1 with python 2.6.1.

{{{
scons: Reading SConscript files ...
/home/david/build/mapnik/src/mapnik-0.5.1/scons/scons-local-0.97.0d20071212/SCons/Platform/posix.py:37: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
import popen2
/home/david/build/mapnik/src/mapnik-0.5.1/scons/scons-local-0.97.0d20071212/SCons/Tool/msvs.py:37: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Building on Linux ...
Checking for C library m... AttributeError: 'NodeList' object has no attribute 'name':
File "/home/david/build/mapnik/src/mapnik-0.5.1/SConstruct", line 174:
if not conf.CheckLibWithHeader(libinfo[0], libinfo[1], 'C') and libinfo[2]:
File "/home/david/build/mapnik/src/mapnik-0.5.1/scons/scons-local-0.97.0d20071212/SCons/SConf.py", line 606:
ret = apply(self.test, (context,) + args, kw)
File "/home/david/build/mapnik/src/mapnik-0.5.1/scons/scons-local-0.97.0d20071212/SCons/SConf.py", line 946:
call = call, language = language, autoadd = autoadd)
File "/home/david/build/mapnik/src/mapnik-0.5.1/scons/scons-local-0.97.0d20071212/SCons/Conftest.py", line 510:
ret = context.BuildProg(text, suffix)
File "/home/david/build/mapnik/src/mapnik-0.5.1/scons/scons-local-0.97.0d20071212/SCons/SConf.py", line 793:
return not self.TryBuild(self.env.Program, text, ext)
File "/home/david/build/mapnik/src/mapnik-0.5.1/scons/scons-local-0.97.0d20071212/SCons/SConf.py", line 766:
return apply(self.sconf.TryBuild, args, kw)
File "/home/david/build/mapnik/src/mapnik-0.5.1/scons/scons-local-0.97.0d20071212/SCons/SConf.py", line 530:
nodes = builder(target = target, source = source)
File "/home/david/build/mapnik/src/mapnik-0.5.1/scons/scons-local-0.97.0d20071212/SCons/Environment.py", line 214:
return apply(MethodWrapper.__call__, (self, target, source) + args, kw)
File "/home/david/build/mapnik/src/mapnik-0.5.1/scons/scons-local-0.97.0d20071212/SCons/Environment.py", line 178:
return apply(self.method, nargs, kwargs)
File "/home/david/build/mapnik/src/mapnik-0.5.1/scons/scons-local-0.97.0d20071212/SCons/Builder.py", line 614:
return self._execute(env, target, source, OverrideWarner(kw), ekw)
File "/home/david/build/mapnik/src/mapnik-0.5.1/scons/scons-local-0.97.0d20071212/SCons/Builder.py", line 548:
source = self.src_builder_sources(env, source, overwarn)
File "/home/david/build/mapnik/src/mapnik-0.5.1/scons/scons-local-0.97.0d20071212/SCons/Builder.py", line 727:
match_suffix = match_src_suffix(s.name)
}}}