Gentoo Archives: gentoo-python

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

Replies