Trying to compile 0.77, 0.78 and 0.79 under Ubuntu 9.10 (Karmic Koala)

Bruce H McIntosh scotsman at afn.org
Thu Sep 15 12:34:31 PDT 2011


On Wed, 2010-02-03 at 11:59 -0500, Bruce H McIntosh wrote:
> When I attempt to build nonpareil via "scons-local/scons.py", I get the
> following:
> ...

> "/usr/local/src/nonpareil-0.78/scons-local/scons-local-0.96.90/SCons/Tool/gas.py", line 36
> 
>     import as
> 
>             ^
> 
> SyntaxError: invalid syntax

Some further explorations online yielded up the interesting fact that
the word "as" is apparently now a reserved word in Python >= 2.6 , so
the local install of scons which comes with the nonpareil distribution
will not work with python 2.6 due to the "as.py" module in the

scons-local/scons-local-0.96.90/SCons/Tool/ 

directory.  Either you have to rename as.py to aas.py  and modify gas.py
to say 

   import aas

and 

   aas.generate(env)

or keep your old python 2.5 install around and monkey your symlinks like
I've been doing.


-- 
------------------------------------------------------------------------
    Bruce H. McIntosh  scotsman at afn.org  www.afn.org/~scotsman  WA4UF
------------------------------------------------------------------------
         Network geek with a strong affinity for Telecasters




More information about the Nonpareil-users mailing list