[C++-sig] Status of Numpy support in boost python

Stefan Seefeld seefeld at sympatico.ca
Tue Mar 9 12:59:25 CET 2010

On 03/09/2010 06:34 AM, Pim Schellart wrote:
> for fast numerical calculations callbacks into Python are not a good option.
> In terms of the discussion concerning compiled or header only I think
> that although it would be nice and clean to have a header only
> library, as it stands boost python has to be compiled anyway and I
> think adding numpy as an optional dependency would not be bad because
> users who want to use this functionality by definition have numpy
> installed as well.

You may be forgetting that the one installing boost.python isn't 
necessarily the one compiling it. Not all users of boost.python need 
numpy. Thus, should there be two boost.python packages, one with and one 
without numpy dependency ?
I think it would be cleaner to factor that out, unless it can be kept in 
a header-only form.



       ...ich hab' noch einen Koffer in Berlin...

More information about the Cplusplus-sig mailing list