On 10:44 Sat 13 Oct , Torsten Veller wrote:
> * Donnie Berkholz <[EMAIL PROTECTED]>:
> > python_mod_optimize() and python_mod_cleanup() already tag ROOT on,
>
> python_mod_optimize() does not.
Mine does:
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 $?
}
> > so for ROOT != / this is broken.
>
> But does python_mod_optimize do anything useful with ROOT !=/ and
> cross-compilation? What if python versions differ?
That's a good question, and it looks like python_version() could use a
fix for ROOT != / on same-arch systems. On cross-compiled, it'll
probably be more work and I'm not sure how to deal with it.
Thanks,
Donnie
--
[EMAIL PROTECTED] mailing list