[issue21282] setup.py: More informative error msg for modules which built but failed import check
Lukas Vacek
report at bugs.python.org
Thu Apr 17 13:09:22 CEST 2014
New submission from Lukas Vacek:
Hey,
Currently when a module builds successfully during cpython build but it can't be imported (import check around line 330 in setup.py) the module shows in "Failed to build these modules: " which can be misleading.
Especially when linking against libraries in non-standard locations the user would set LD_FLAGS and CPPFLAGS and then ... wonder why the cpython build process is not picking the libraries up and the module is not built.
I think the modules which *have built* but were removed because of a failed import check should be marked as such so the user knows what happens and can take appropriate actions (set LD_LIBRARY_PATH as well, for example).
A patch attached - it's a very simple change (about 10 lines), created with "hg export".
Thanks,
Lucas
----------
components: Build
files: setup_failed_import_hgexport
messages: 216684
nosy: Lukas.Vacek
priority: normal
severity: normal
status: open
title: setup.py: More informative error msg for modules which built but failed import check
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34942/setup_failed_import_hgexport
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21282>
_______________________________________
More information about the Python-bugs-list
mailing list