Rémi Cardona wrote:
> 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.

Why not just leave the path off altogether then?  That should default to
${ROOT}/usr/$(get_libdir)/python[0-9].[0-9]* IIRC.

-- 
                  fonts / wxWindows / gcc-porting / treecleaners
  EFFD 380E 047A 4B51 D2BD  C64F 8AA8 8346 F9A4 0662 (0xF9A40662)

-- 
[EMAIL PROTECTED] mailing list

Reply via email to