[Numpy-discussion] Re: [SciPy-user] Where do I put site.cfg? What should it contain? Can I build w/o atlas?

David M. Cooke cookedm at physics.mcmaster.ca
Wed Feb 15 14:45:07 EST 2006

On Wed, Feb 15, 2006 at 03:13:56PM -0700, Travis Oliphant wrote:
> Robert Kern wrote:
> I've started this process already.  I think a useful search order is
> 1) next to current setup.py  --- os.getcwd() is probably better than 
> what I did (backing up the frame until you can't go back anymore and 
> getting the __file__ from that frame).  Incidentally, it looks like a 
> site.cfg present there is already copied to numpy/distutils on install 
> --- it's looks like its just not used for the numpy build itself.
> 2) in the compilers "HOME" directory --- not sure how to implement that.

Have a look at distutils.dist for the Distribution.find_config_files
method. Also, the parse_config_files method reads the config options in
a way that keeps which filenames they come from.

> 3) in the system-wide directory (what is currently done --- except when 
> you are installing numpy that means it has to be in 
> numpy/distutils/site.cfg).

|David M. Cooke                      http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca

More information about the NumPy-Discussion mailing list