[C++-sig] boost python & context manager/with statement

2012-02-12 Thread Avi Bahra
Does boost python support context management using the with statement? In my case I need to manage __enter__/__exit__ on the c++ side. Could not find any examples for this in the documentation. Any help appreciated. Best regards, Ta,     Avi ___ Cplusp

[C++-sig] [ boost.python] problems with python 2.7 on AIX, boost 1.45 and vacpp v11.1

2012-01-03 Thread Avi Bahra
I have a crash when importing my boost python extension. With the following configuration. - python 2.7 - boost 1.45 - vacpp 11.1 - AIX 5.3 The problem can be reproduced with boost python examples as well. Currently I have a working solution using python 2.54. This is what the core du

[C++-sig] bjam: How to determine python version for installation ?

2011-09-29 Thread Avi Bahra
As a part of installation of my extension I need determine the python extension ( without having to hard code it) Currently you can specify the python version, but I need a way of determining which python version is being used, when we specify: 'using python ;' Is this possible ? Best regard

[C++-sig] bjam broken for installing python extensions

2011-07-04 Thread Avi Bahra
Using boost 1.45, on linux suse, gcc I am trying to install a shared library(python extension), and I want to hard code the path to the boost python shared library, so that my users don't need to specify LD_LIBRARY_PATH. >From reading the bjam documentation, I should be using . This works for an

[C++-sig] boost python extensions & on HPUX/AIX ?

2011-06-30 Thread Avi Bahra
I have built boost python extension. I have used the to embed the path to boost python shared library. This avoids users of my extension from having to set LD_LIBRARY_PATH when using my extension python-extension ecflow : [ glob src/*.cpp ] : $(PYTHON_INSTALL_DIR) ; In my Jam

[C++-sig] building boost python --threading mystery ?

2010-10-15 Thread Avi Bahra
Trying to understand --threading option when applied to building boost python On Linux with gcc it appears to have no effect. bjam toolset=gcc --with-python link=shared variant=debug --threading=single Building the Boost C++ Libraries. ...patience... ...patience... ...found 1489 targets... ...upd