[SciPy-dev] weave -- inline C/C++ in Python, an implementation

Fernando Pérez fperez at pizero.colorado.edu
Fri Jan 4 18:30:21 CST 2002

On Fri, 4 Jan 2002, eric wrote:

> Hey Fernando,
> The fixed width problem occurs for me too.  I haven't found the cause yet.
> I'll keep looking later tonight.


> The problem with cerr was supposed to go away when I hard coded the
> inclusion of the stdc++ library
> in build_tools.py.  Hmmm.  Looks like I did this in a pretty hap-hazard way:
>         if sys.platform[:-1] == 'linux':
>             libraries = kw.get('libraries',[])
>             kw['libraries'] = ['stdc++'] +  libraries
> Looks like this is guaranteed to fail for most cases.  Does mandrake define
> sys.platform differently than
> RH?  Anyway, I've changed this to:

yes, this is Mandrake:

>>> sys.platform

Something like:
if sys.platform.lower().find('linux') > -1:

might be much more robust.

Or just force compilation with g++ (why don't you?)

> I've uploaded new source files.  Please see if this fixes the problem.
I'll let you know.



More information about the Scipy-dev mailing list