Gentoo Archives: gentoo-dev

From: Ryan Hill <dirtyepic@g.o>
To: gentoo-dev@l.g.o
Subject: [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 22:21:38
Message-Id: ferfk4$1re$1@ger.gmane.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 "Rémi Cardona"
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

Replies