Donnie Berkholz wrote:
> python_mod_optimize() {
> local myroot
> # strip trailing slash
> myroot="${ROOT%/}"
>
> ...
>
> ebegin "Byte compiling python modules for python-${PYVER} .."
> python${PYVER} ${myroot}/usr/$(get_libdir)/python${PYVER}/compileall.py
> ${c$
> python${PYVER} -O
> ${myroot}/usr/$(get_libdir)/python${PYVER}/compileall.py $
> eend $?
> }
Could the python eclass have a function (or whatever as I'm no bash
guru) that returns this :
${ROOT}/usr/$(get_libdir)/python${PYVER}/
We use it over and over in all our ebuilds, and it's error-prone as my
last few commits have shown.
Cheers,
Rémi
--
[EMAIL PROTECTED] mailing list