Gentoo Archives: gentoo-dev

From: "Rémi Cardona" <remi@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-python/gnome-python-extras: ChangeLog gnome-python-extras-2.19.1-r1.ebuild
Date: Sat, 13 Oct 2007 09:27:53
Message-Id: 47108C8F.2010208@gentoo.org
In Reply to: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-python/gnome-python-extras: ChangeLog gnome-python-extras-2.19.1-r1.ebuild by Donnie Berkholz
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

Replies