|
From: David M. C. <co...@ph...> - 2006-02-15 22:44:09
|
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/ |co...@ph... |