1 |
Donnie Berkholz wrote: |
2 |
> python_mod_optimize() { |
3 |
> local myroot |
4 |
> # strip trailing slash |
5 |
> myroot="${ROOT%/}" |
6 |
> |
7 |
> ... |
8 |
> |
9 |
> ebegin "Byte compiling python modules for python-${PYVER} .." |
10 |
> python${PYVER} ${myroot}/usr/$(get_libdir)/python${PYVER}/compileall.py ${c$ |
11 |
> python${PYVER} -O ${myroot}/usr/$(get_libdir)/python${PYVER}/compileall.py $ |
12 |
> eend $? |
13 |
> } |
14 |
|
15 |
Could the python eclass have a function (or whatever as I'm no bash |
16 |
guru) that returns this : |
17 |
|
18 |
${ROOT}/usr/$(get_libdir)/python${PYVER}/ |
19 |
|
20 |
We use it over and over in all our ebuilds, and it's error-prone as my |
21 |
last few commits have shown. |
22 |
|
23 |
Cheers, |
24 |
|
25 |
Rémi |
26 |
-- |
27 |
gentoo-dev@g.o mailing list |