Marc-Andre Lemburg <m...@egenix.com> added the comment: Éric Araujo wrote: > > Éric Araujo <mer...@netwok.org> added the comment: > > On Mar 29, 2011, at 10:12 PM, Matthias Klose wrote: >> no, it looks for headers and libraries in more directories. But really, this >> whole testing for paths is wrong. Just use the compiler to search for headers >> and libraries, no need to check these on your own. > > Do all compilers provide this info, including Windows ones? If so, that > would be a nice feature for distutils2.
This only works for a handful of system library paths, not the extra ones that you may need to search for local installations of libraries and which you have to inform the compiler about :-) Many gcc installations, for example, don't include the /usr/local or /opt/local dir trees in the search. On Windows, you have to run the correct vc*.bat files to have the paths setup and optional software rarely adds the correct paths to LIB and INCLUDE. The compiler also won't help with the problem Sean originally pointed to: building software on systems that can run both 32-bit and 64-bit and finding the right set of libs to link at. Another problem is finding the paths to the right version of a library (both include files and corresponding libraries). While it would be great to have a system tool take care of setting things up correctly, I don't know of any such tool, so searching paths and inspecting files using REs appears to be the only way to build a general purpose detection scheme. mxSetup.py (included in egenix-mx-base) uses such a scheme, distutils has one too. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1294959> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com