Author lemburg
Recipients Arfrever, akitada, andybuckley, barry, belopolsky, christian.heimes, doko, eric.araujo, ivazquez, jafo, jcea, lemburg, matejcik, pitrou, tarek
Date 2012-05-15.07:42:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <4FB208E2.1000704@egenix.com>
In-reply-to <1337033683.59.0.979416658589.issue1294959@psf.upfronthosting.co.za>
Content
Éric Araujo wrote:
> 
> Éric Araujo <merwok@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.
History
Date User Action Args
2012-05-15 07:42:31lemburgsetrecipients: + lemburg, barry, doko, jafo, jcea, belopolsky, pitrou, christian.heimes, matejcik, tarek, ivazquez, eric.araujo, Arfrever, akitada, andybuckley
2012-05-15 07:42:31lemburglinkissue1294959 messages
2012-05-15 07:42:30lemburgcreate