Boost logo

Boost-Build :

Subject: Re: [Boost-build] error with 'import platform ;'
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-03-22 08:07:24


On Sunday 21 March 2010 22:09:15 Oliver Kowalke wrote:

> Vladimir Prus schrieb:
> > PYTHON_IMPORT_RULE platform : architecture : : platform.architecture ;
>
> bjam reports an error:
>
> ../../../libs/fiber/build/Jamfile.v2:13: in modules.load
> *** argument error
> * rule PYTHON_IMPORT_RULE ( python-module : function : jam-module :
> rule-name )
> * called with: ( platform : architecture : : platform.architecture )
> * missing argument jam-module
> (builtin):see definition of rule 'PYTHON_IMPORT_RULE' being called
>
> BTW the python platform.architectue() returns an tuple of two strings.
> How can this be evaluated in bjam?

It cannot, directly, as bjam can only receive a list of string. Attached
is a complete example that bypasses that. When I run bjam, I get this
output:

        ghost_at_wind:~/Work/Boost/boost-svn/tools/build/v2/example/hello$ ~/Work/Boost/boost-svn/tools/jam/src/bin.linuxx86/bjam
        Architecture is 32bit

Can you try this approach?

Thanks,

--
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk