title: Correct way to point to ATLAS/BLAS/LAPACK libraries for numpy build?
body: <p>I'm building numpy from source on CentOS 6.5 with no root access (python -V=2.7.6). I have the latest numpy source from git. I cannot for the life of me get numpy to acknowledge atlas libs. I have:</p>
  
  <pre><code>ls -1 /usr/lib64/atlas
  
  libatlas.so.3
  libatlas.so.3.0
  libcblas.so.3
  libcblas.so.3.0
  libclapack.so.3
  libclapack.so.3.0
  libf77blas.so.3
  libf77blas.so.3.0
  liblapack.so.3
  liblapack.so.3.0
  libptcblas.so.3
  libptcblas.so.3.0
  libptf77blas.so.3
  libptf77blas.so.3.0
  </code></pre>
  
  <p>I don't know anything about how these libs came about, but I can only assume that the atlas builds would be faster than any standard BLAS/LAPACK builds I could make.</p>
  
  <p>What is the correct way to point numpy to these libraries? Do I <code>export ATLAS, BLAS, LAPACK=...</code> setting each to its corresponding path? or do I edit a <code>site.cfg</code> file to contain something like:</p>
  
  <pre><code>[default]
  library_dirs = /usr/lib64/atlas
  
  [atlas]
  library_dirs = /usr/lib64/atlas
  atlas_libs = lapack, cblas, f77blas, atlas
  </code></pre>
  
  <p>I've tried just about every variation of the above, and each time I run <code>python setup.py config</code> it tells me each library cannot be found in the paths I specify as well as a bunch of other default search paths. I've pasted the results of running <code>python setup.py config</code> with the <code>site.cfg</code> as above and no environment variables set here: <a href="http://pastebin.com/EL9CfaR7" rel="noreferrer">http://pastebin.com/EL9CfaR7</a>. Any help is appreciated.</p>