Message139259
related to http://bugs.python.org/issue11715
python 2.7 and 3.1 now include a patch for behavior specific to Ubuntu and Debian to search in multiarch directories for libraries needed for building stdlib extensions.
This distro-specific patch is unnecessary if instead python could just query and use the default search path from the compiler.
With gcc, it's possible to query the list of built-in library directories with:
$ gcc -print-search-dirs | sed -n -e's/libraries: =//p' | sed -e's/:/\n/g' | xargs -n1 readlink -f
and the include directories with:
$ gcc -v -E - < /dev/null 2>&1 | awk '/^#include/,/^End of search/ {i=1} i==1 && /^ / {print}'
(additional filtering, to exclude compiler-internal directories, may be sensible.)
Having python query and use these directories when searching for libraries would make the build system more robust in a variety of circumstances. |
|
Date |
User |
Action |
Args |
2011-06-27 12:02:19 | vorlon | set | recipients:
+ vorlon |
2011-06-27 12:02:19 | vorlon | set | messageid: <1309176139.38.0.221668771682.issue12418@psf.upfronthosting.co.za> |
2011-06-27 12:02:18 | vorlon | link | issue12418 messages |
2011-06-27 12:02:18 | vorlon | create | |
|