← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 1804: fix bug in scons.profile*: now CPPPATH and LIBPATH is a simple string (not a list) with colon sep...

 

Sorry, it does not work for me:

scons: Reading SConscript files ...
@@@ Using profile default (scons.profile-default) @@@
AttributeError: 'list' object has no attribute 'split':
  File "/home/gladk/dem/yade/currentMono/yade/SConstruct", line 164:
    env['CPPPATH']=colonSplit(env['CPPPATH'])
  File "/home/gladk/dem/yade/currentMono/yade/SConstruct", line 121:
    def colonSplit(x): return x.split(':')

______________________________

Anton Gladkyy


2009/11/21 <noreply@xxxxxxxxxxxxx>

> ------------------------------------------------------------
> revno: 1804
> committer: Sergei D. <sega@think>
> branch nick: trunk
> timestamp: Fri 2009-11-20 18:32:50 +0300
> message:
>  fix bug in scons.profile*: now CPPPATH and LIBPATH is a simple string (not
> a list) with colon separated paths.
> modified:
>  SConstruct
>
>
> --
> lp:yade
> https://code.launchpad.net/~yade-dev/yade/trunk<https://code.launchpad.net/%7Eyade-dev/yade/trunk>
>
> Your team Yade developers is subscribed to branch lp:yade.
> To unsubscribe from this branch go to
> https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription<https://code.launchpad.net/%7Eyade-dev/yade/trunk/+edit-subscription>
> .
>
> === modified file 'SConstruct'
> --- SConstruct  2009-11-20 11:34:59 +0000
> +++ SConstruct  2009-11-20 15:32:50 +0000
> @@ -161,9 +161,9 @@
>  opts.Update(env)
>  opts.Save(optsFile,env)
>  if env.has_key('CPPPATH'):
> -       env['CPPPATH']=colonSplit(env['CPPPATH'][0])
> +       env['CPPPATH']=colonSplit(env['CPPPATH'])
>  if env.has_key('LIBPATH'):
> -       env['LIBPATH']=colonSplit(env['LIBPATH'][0])
> +       env['LIBPATH']=colonSplit(env['LIBPATH'])
>
>  # do not propagate PATH from outside, to ensure identical builds on
> different machines
>  #env.Append(ENV={'PATH':['/usr/local/bin','/bin','/usr/bin']})
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References