Re: syntaxerror
Bram Moolenaar <[email protected]> Wed, 28 Apr 2004 11:17:33 +0200
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Thierry Poidras wrote:
> I'm newby with aap.
> to compile an application (WhatOS) with cygwin an xfree on windwos XP
>
> Here is the beginning of the file .aap called by aap configure where
> it seems to be a syntax error
>
> #S,configure :
>
> libboost_python = $_recipe.LIB_BOOST_PYTHON_DIR/$_recipe.LIB_BOOST_PYTHON
>
> :python
>
> # on windows, PATH is used to find dlls
>
> if sys.platform == 'cygwin':
>
> LD_LIBRARY_PATH = 'PATH'
>
> else:
>
> LD_LIBRARY_PATH = 'LD_LIBRARY_PATH'
>
>
>
> The error message is:
>
> bash-2.05b$ aap configure
> Aap: Error in recipe "/home/Thierry Poidras/whatos-1.0.3/whatos/whatos/syscheck.aap" line 3:
> aap_assign(3, globals(), 'libboost_python', "$_recipe.LIB_BOOST_PYTHON_DIR/$_recipe.LIB_BOOST_PYTHON_DIR", '=', '')
> ^
> SyntaxError: invalid syntax
>
> included from "/home/Thierry Poidras/whatos-1.0.3/whatos/whatos/main.aap" line 35
I can't see anything wrong with the aap_assign() function call, thus I
suspect the indent is the problem. But it seems that in your message
the indents have all been removed. This is how it should look:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#S,configure :
libboost_python = $_recipe.LIB_BOOST_PYTHON_DIR/$_recipe.LIB_BOOST_PYTHON
:python
# on windows, PATH is used to find dlls
if sys.platform == 'cygwin':
LD_LIBRARY_PATH = 'PATH'
else:
LD_LIBRARY_PATH = 'LD_LIBRARY_PATH'
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Notice that the first assignment should not have indent.
--
Everybody lies, but it doesn't matter since nobody listens.
-- Lieberman's Law
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click