<br><br><div class="gmail_quote">On Tue, Aug 7, 2012 at 5:35 PM, Chris Barker <span dir="ltr"><<a href="mailto:chris.barker@noaa.gov" target="_blank">chris.barker@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Aug 6, 2012 at 8:51 PM, Tom Krauss <<a href="mailto:thomas.p.krauss@gmail.com">thomas.p.krauss@gmail.com</a>> wrote:<br>
> I got a new job, and a new mac book pro on which I just installed Mac OS X<br>
> 10.8.<br>
<br>
</div>congrats -- on the job, and on an employer that gets you a mac!<br>
<div class="im"><br>
> I need to run SWIG to generate a shared object from C++ source that works<br>
> with numpy.i.  I'm considering installing the Scipy Superpack, but I have a<br>
> question.  If I install the Scipy Superpack, which has most of the packages<br>
> I need, plus some others, will it be able to find "numpy/arrayobject.h"<br>
<br>
</div>It's probably there, yes, and you should be able to find it with:<br>
<br>
numpy.get_include()<br>
<br>
(use that in your setup.py)<br>
<div class="im"><br>
> the source files needed by gcc to compile the swig-generated C++ wrapper?<br>
<br>
</div>The trick here is which gcc -- Apple is fast to move forward, is on<br>
the bleeding edge with gcc -- the latest XCode uses LLVM, which is not<br>
compatible with older Python builds.<br>
<br>
I *think* the superpack is build against the <a href="http://pyton.org" target="_blank">pyton.org</a> python builds (32 bit?)<br></blockquote><div><br>No, it says at <a href="http://fonnesbeck.github.com/ScipySuperpack/">http://fonnesbeck.github.com/ScipySuperpack/</a> that it's built against 64-bit Apple Python.<br>
<br>Ralf<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Anyway, the python,org 32 bit build requires an older gcc for building<br>
extensions -- you can get XCode 3from Apple Developer connection if<br>
you dig for it -- it works fine on 10.7, I hope it does on 10.8.<br>
<br>
I'm not totally sure about the 32/64 bit Intel build.<br>
<br>
The pythonmac list will be a help here.<br>
<br>
Good luck,<br>
<br>
-Chris<br>
<br>
<br>
<br>
<br>
--<br>
<br>
Christopher Barker, Ph.D.<br>
Oceanographer<br>
<br>
Emergency Response Division<br>
NOAA/NOS/OR&R            <a href="tel:%28206%29%20526-6959" value="+12065266959">(206) 526-6959</a>   voice<br>
7600 Sand Point Way NE   <a href="tel:%28206%29%20526-6329" value="+12065266329">(206) 526-6329</a>   fax<br>
Seattle, WA  98115       <a href="tel:%28206%29%20526-6317" value="+12065266317">(206) 526-6317</a>   main reception<br>
<br>
<a href="mailto:Chris.Barker@noaa.gov">Chris.Barker@noaa.gov</a><br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote></div><br>