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] Export best implementation build dir as BUILD_DIR in common phases.
Date: Sat, 12 Jan 2013 20:35:30
Message-Id: 1358016741-15029-1-git-send-email-mgorny@gentoo.org
1 This is more friendly than BEST_BUILD_DIR and should not cause trouble
2 in the common cases.
3 ---
4 gx86/eclass/distutils-r1.eclass | 4 +++-
5 1 file changed, 3 insertions(+), 1 deletion(-)
6
7 diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
8 index 8156a36..9d6c714 100644
9 --- a/gx86/eclass/distutils-r1.eclass
10 +++ b/gx86/eclass/distutils-r1.eclass
11 @@ -450,9 +450,11 @@ distutils-r1_run_phase() {
12 # @DESCRIPTION:
13 # Run the given command, restoring the best-implementation state.
14 _distutils-r1_run_common_phase() {
15 + local DISTUTILS_ORIG_BUILD_DIR=${BUILD_DIR}
16 +
17 local EPYTHON=${_DISTUTILS_BEST_IMPL[0]}
18 local PYTHON=${_DISTUTILS_BEST_IMPL[1]}
19 - local BEST_BUILD_DIR=${_DISTUTILS_BEST_IMPL[2]}
20 + local BUILD_DIR=${_DISTUTILS_BEST_IMPL[2]}
21 local PYTHONPATH=${_DISTUTILS_BEST_IMPL[3]}
22
23 export EPYTHON PYTHON PYTHONPATH
24 --
25 1.8.1

Replies