1 |
Rémi Cardona wrote: |
2 |
> Donnie Berkholz wrote: |
3 |
>> python_mod_optimize() { |
4 |
>> local myroot |
5 |
>> # strip trailing slash |
6 |
>> myroot="${ROOT%/}" |
7 |
>> |
8 |
>> ... |
9 |
>> |
10 |
>> ebegin "Byte compiling python modules for python-${PYVER} .." |
11 |
>> python${PYVER} ${myroot}/usr/$(get_libdir)/python${PYVER}/compileall.py ${c$ |
12 |
>> python${PYVER} -O ${myroot}/usr/$(get_libdir)/python${PYVER}/compileall.py $ |
13 |
>> eend $? |
14 |
>> } |
15 |
> |
16 |
> Could the python eclass have a function (or whatever as I'm no bash |
17 |
> guru) that returns this : |
18 |
> |
19 |
> ${ROOT}/usr/$(get_libdir)/python${PYVER}/ |
20 |
> |
21 |
> We use it over and over in all our ebuilds, and it's error-prone as my |
22 |
> last few commits have shown. |
23 |
|
24 |
Why not just leave the path off altogether then? That should default to |
25 |
${ROOT}/usr/$(get_libdir)/python[0-9].[0-9]* IIRC. |
26 |
|
27 |
-- |
28 |
fonts / wxWindows / gcc-porting / treecleaners |
29 |
EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662 (0xF9A40662) |
30 |
|
31 |
-- |
32 |
gentoo-dev@g.o mailing list |