Boost logo

Boost-Build :

Subject: Re: [Boost-build] error with 'import platform ;'
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-03-21 03:27:06


Oliver Kowalke wrote:
> Hmm - my last posts were dropped! So I'll repost:
>
>
> If I add 'import platform ;' (rquired for
> platform.architecture()/.machine()) to my Jamfile.v2 I get an error
> after executing bjam:
>
> platform.jam: no such file
>
> How to fix?

Seems like my reply to you was also dropped :-(

What is 'platform.architecture'? Is that a module from Python standard
library? If so, for starters, have you built bjam with Python support?
If so, you can do this:

        PYTHON_IMPORT_RULE platform : architecture : : platform.architecture ;

and then use

        [ platform.architecture ]

everywhere. Does this help?

- Volodya


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