|
From: Sasha <nd...@ma...> - 2006-01-17 20:18:59
|
> This is new to me. Sofar I know that numpy has been succesfully built on > various unix systems, on Windows, and on OSX. The end-of-lines of numpy > headers have never caused any breakage afaik and numpy header files do no= t > require pre-compilation. Could you give more specific examples of python > platforms where building numpy extension modules could fail? > No, I cannot and as I've just checked as of python 2.4 distutils do not process headers in any way. In fact install_data and install_headers commands are almost identical (both just copy files) and that's why your code happens to work. I did not say your code does not work on all platforms, I said it is not guaranteed to work. Any change to distutils that makes install_data and install_headers commands differ will break your code. When I first installled numpy (it was still scipy_core back then) my build scripts stopped working once I've changed #includes in my source. I tried to restore the old include location by changing install_headers setting, but that had no effect. Then I've dicovered that numpy does not use install_headers command at all. Surely everything was fixed by adding "include_dirs =3D [numpy.get_numpy_include()]" to my setup scripts, but it took several posts to various forums to discover that option. (I started by filing a bug report on SF.) Given that distutils manual specifically discouraged setting custom include_dirs, many future users of numpy are bound to relive my experience. Also, imagine if more third party packages follow numpy lead --- will I have to append an entry for each package to include_dirs? -- sasha |