Gentoo Archives: gentoo-python

From: Mike Gilbert <floppym@g.o>
To: "Michał Górny" <mgorny@g.o>
Cc: gentoo-python@l.g.o, python@g.o
Subject: [gentoo-python] Re: [PATCH distutils-r1] Pass --build-platlib & --build-purelib instead of --build-lib.
Date: Sun, 17 Mar 2013 23:35:00
Message-Id: CAJ0EP40Hm5D=s61gKWrJXhQGvtPQ4cwvpQQG8EGqKvODsDX9Zw@mail.gmail.com
In Reply to: [gentoo-python] [PATCH distutils-r1] Pass --build-platlib & --build-purelib instead of --build-lib. by "Michał Górny"
1 On Sun, Mar 17, 2013 at 6:54 PM, Michał Górny <mgorny@g.o> wrote:
2 > This allows splitting the library directories back without replacing
3 > the whole esetup.py invocation.
4 >
5 > Needed for wxpython, https://bugs.gentoo.org/show_bug.cgi?id=455332
6 > ---
7 > gx86/eclass/distutils-r1.eclass | 13 +++++++++++--
8 > 1 file changed, 11 insertions(+), 2 deletions(-)
9 >
10 > diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
11 > index 5c628ed..e1c06dd 100644
12 > --- a/gx86/eclass/distutils-r1.eclass
13 > +++ b/gx86/eclass/distutils-r1.eclass
14 > @@ -234,8 +234,17 @@ esetup.py() {
15 > add_args+=(
16 > build
17 > --build-base "${BUILD_DIR}"
18 > - # using a single directory for them helps us export ${PYTHONPATH}
19 > - --build-lib "${BUILD_DIR}/lib"
20 > +
21 > + # using a single directory for them helps us export
22 > + # ${PYTHONPATH} and ebuilds find the sources independently
23 > + # of whether the package installs extensions or not
24 > + #
25 > + # note: due to some packages (wxpython) relying on separate
26 > + # platlib & purelib dirs, we do not set --build-lib (which
27 > + # can not be overriden with --build-*lib)
28 > + --build-platlib "${BUILD_DIR}/lib"
29 > + --build-purelib "${BUILD_DIR}/lib"
30 > +
31 > # make the ebuild writer lives easier
32 > --build-scripts "${BUILD_DIR}/scripts"
33 > )
34 > --
35 > 1.8.1.5
36 >
37
38 Seems fine, and it doesn't even break paver. ;-)