Message139259
| Author |
vorlon |
| Recipients |
vorlon |
| Date |
2011年06月27日.12:02:18 |
| SpamBayes Score |
1.7531798e-07 |
| Marked as misclassified |
No |
| Message-id |
<1309176139.38.0.221668771682.issue12418@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|