[issue12418] python should inherit the library search path from the compiler for stdlib extensions
Steve Langasek
report at bugs.python.org
Mon Jun 27 14:02:19 CEST 2011
New submission from Steve Langasek <steve.langasek at ubuntu.com>:
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.
----------
components: Build
messages: 139259
nosy: vorlon
priority: normal
severity: normal
status: open
title: python should inherit the library search path from the compiler for stdlib extensions
type: behavior
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12418>
_______________________________________
More information about the Python-bugs-list
mailing list