While writing a manual page for python.eclass, I noticed a few things that IMO should be changed. Most of the changes are regarding launching external commands for stuff that can easily be done with bash (ie. the sleu of "echo ... | sed ..." constructs that can easily be accomplished via parameter substitution). A diff is attached. You guys (of course) are free to dismiss this bug and close WONTFIX, since obviously you guys are the experts on this eclass, not me. Cheers
Created attachment 44625 [details, diff] python.eclass.diff
sorry for taking so long. i guess i never saw this bug, but they are all good fixes to my lack of bash-fu skills. thanks for the patch. committing to cvs.
Small Problem with the changes to python_version() in the new python.eclass. if python -V returns a version with only a major and minor version ${PYVER} and ${PYVER_MINOR} will be incorrect. for example with python 2.4 ${PYVER} will end up being 2 instead of 2.4 and ${PYVER_MINOR} will end up being 2 as ${PYVER} doesn't contain the minor version number
See #90092