Boost logo

Boost :

From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2007-11-18 14:26:21

Stefan Seefeld wrote:
> Boris Gubenko wrote:
>> David Abrahams wrote:
>>> Yeah; isn't there a function in os.jam that lets you get that value?
>> I'm not sure what function you mean. I can use 'os.platform' instead of
>> 'modules.peek : OSPLAT' (I wish I used it in the first place).
>> Is 'os.platform' the recommended way to determine the platform or there
>> is a better way?
> As your goal is to figure out the suffix (extension), you can ask python
> for that directly, since python clearly needs to know what filenames to
> look for when importing modules.
> LIBEXT=`$PYTHON -c "from distutils import sysconfig; print
> sysconfig.get_config_var('SO')" | tr -d "\r"`
> what I do in my script.

It has drawback that it doesn't work if one wants to do cross-compiles.
Which is why we avoid system runtime tests, one exception being asking
the compiler what version it is.

-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. -
-- rrivera/ - grafik/
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

Boost list run by bdawes at, gregod at, cpdaniel at, john at