Re: [Matplotlib-users] C compiler is being used to compile C++ code.

2009-11-24 Thread Michael Droettboom
Dr. David Kirkby wrote: > Michael Droettboom wrote: >> A colleague of mine also suggested an alternative workaround that is >> almost humorously simple. Define both the C and C++ compilers to be >> "CC" when building matplotlib. That is, set the environment variable >> "CC" to "CC" and "CXX" t

Re: [Matplotlib-users] C compiler is being used to compile C++ code.

2009-11-24 Thread Dr. David Kirkby
Michael Droettboom wrote: > A colleague of mine also suggested an alternative workaround that is > almost humorously simple. Define both the C and C++ compilers to be > "CC" when building matplotlib. That is, set the environment variable > "CC" to "CC" and "CXX" to "CC". Distutils will then u

Re: [Matplotlib-users] C compiler is being used to compile C++ code.

2009-11-24 Thread Michael Droettboom
A colleague of mine also suggested an alternative workaround that is almost humorously simple. Define both the C and C++ compilers to be "CC" when building matplotlib. That is, set the environment variable "CC" to "CC" and "CXX" to "CC". Distutils will then use the C++ compiler for everythin

Re: [Matplotlib-users] C compiler is being used to compile C++ code.

2009-11-23 Thread David Cournapeau
Dr. David Kirkby wrote: > Well, on SPARC, the Sun compilers are better than gcc, so there really is an > advantage to getting this sorted out. > numscons should support the Sun Studio compiler. > I do not know SCons myself, but I do know that in the Sage project, SCons has > caused many issu

Re: [Matplotlib-users] C compiler is being used to compile C++ code.

2009-11-23 Thread Dr. David Kirkby
Michael Droettboom wrote: > This is a years-old known bug in distutils (which it looks like you've > already commented on...). I've looked at it many times over those > years, and it's really very difficult to fix from outside without > terrible monkey-patching hacks that are certain to break o

Re: [Matplotlib-users] C compiler is being used to compile C++ code.

2009-11-23 Thread Michael Droettboom
I've attached patches against Python 2.5 and 2.6 to that bug. Neither is significantly different from the original patch. http://bugs.python.org/issue1222585 Once doing that, you'll also need to make the following change to matplotlib so that the correct C++ runtime libraries are used. Once I

Re: [Matplotlib-users] C compiler is being used to compile C++ code.

2009-11-23 Thread Michael Droettboom
This is a years-old known bug in distutils (which it looks like you've already commented on...). I've looked at it many times over those years, and it's really very difficult to fix from outside without terrible monkey-patching hacks that are certain to break on as many systems as they fix. W

[Matplotlib-users] C compiler is being used to compile C++ code.

2009-11-21 Thread Dr. David Kirkby
I was trying to build matplotlib 0.99.0 as part of Sage http://www.sagemath.org/ on a Sun Blade 2000 workstation running Solaris 10 update 7, using the Sun Studio compiler version 12.1 (not gcc). CC and CXX were defined properly as C and C++ compilers, but it would appear that the C compiler i