[Pythonmac-SIG] Fwd: distutils and stdarg.h

Chris Barker chris.barker at noaa.gov
Sat Feb 11 00:16:03 CET 2012


On Thu, Feb 9, 2012 at 1:30 PM, Chris Barker <chris.barker at noaa.gov> wrote:
>>  If it is using C++
>> code, though, you may have to override that yourself since Python itself
>> does not contain any C++ code and I don't think there is any special
>> code in Distutils to override C++ stuff.
>
> That could be it, too.
>
>>> 2) how do I use 4.01. with distutils?
>>
>> For the any C++ modules, you may need to override the C++ compiler
>> choice by using a CXX environment variable.
>
> OK -- I'll try that.

Bingo! I did:

$ export CXX=/usr/bin/g++-4.0

then

$ python setup.py build

and it built fine.

Actually, it chocked when it couldn't find the wxPython libs, but I
disab'ed that, as I don't need it right now -- and then it built fine.

Thanks so much for your help!

-Chris

-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the Pythonmac-SIG mailing list