Atlas and NumPy Problems

Robert Kern rkern at ucsd.edu
Wed Feb 2 23:34:50 EST 2005


Robert Kern wrote:
> Justin Lemkul wrote:
> 
>> Hello all,
>>
>> I am hoping someone out there will be able to help me.  I am trying to 
>> install a program that utilizes NumPy.  In installing NumPy, I 
>> realized that I was lacking Atlas.  I ran into the following problems 
>> installing Atlas and NumPy, as I realized that NumPy could be 
>> installed using the Mac OSX veclib already built in.  If anyone has 
>> any ideas on how to fix either of these, I would be most grateful.
>>
>> I am fairly new to Python (I've been learning it myself), so I 
>> apologize if these questions are a bit foolish.  I've been fighting 
>> these problems for days, and I'm out of ideas.
>>
>> I am running OS X v10.3, gcc v3.3, Python v2.3, ScientificPython 
>> v2.4.3, and am attempting to install NumPy 23.7
> 
> 
> Did you try to follow my advice from the other thread? What does your 
> setup.py look like?

For the record, he did in fact follow my advice (removing the 
ATLAS-specific defaults and letting setup.py autodetect the vecLib 
framework), and it turns out my advice was incomplete.

One also needs to add

   extra_link_args=extra_link_args,

to the argument list of the Extension() call for the _dotblas module.

It worked fine on my machine because I had modified my Python config to 
use "-undefined dynamic_lookup" instead of explicit -framework arguments 
(this change is necessary for the neighborly cohabitation of different 
Python versions, I believe. See the PythonMac-SIG archives for more 
information).

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter



More information about the Python-list mailing list