Re: [A-a-p-user] syntaxerror
Brought to you by:
vimboss
From: Bram M. <Br...@mo...> - 2004-04-28 09:11:49
|
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 -- Bram@Moolenaar.net -- 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 /// |