[Clam-devel] Problems with clam_build_helpers.py
Pau Arumí Albó
parumi at iua.upf.edu
Mon May 5 01:38:57 PDT 2008
El dv 02 de 05 del 2008 a les 15:58 -0300, en/na Francisco Tufró va
escriure:
> Hello, i've just done an update of my svn copy of clam and found some
> errors when trying to compile:
> 1)
> nictukus-computer:~/Documents/programacion/clam/original/trunk/CLAM
> nictuku$ scons configure
> scons: Reading SConscript files ...
> File
> "/Users/nictuku/Documents/programacion/clam/original/trunk/CLAM/scons/libs/clam_build_helpers.py", line 251
>
> env['PKG_CONFIG'] = 'wine pkg-config' if crosscompiling else
> 'pkg-config'
>
> ^
>
> SyntaxError: invalid syntax
...
> May be my python version??
> Python 2.3.5 (#1, Jul 25 2006, 00:38:48)
I'd bet everything on it! This nice conditional-value syntax "A if COND
else B" seems a recent feature.
I have Pyton 2.5.1 on an old ubuntu-gutsy. What distro are you using
with SUCH OLD python version?
Does anybody know the exact python version that brought this syntax? We
definitely need to put a version assert at the beginning of our scons
script.
Pau
More information about the clam-devel
mailing list