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 3/4] In-source builds: set PYTHONPATH properly.
Date: Sun, 24 Feb 2013 12:47:41
Message-Id: 1361710067-8869-3-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-python] [PATCHES] distutils-r1: making in-source builds more compatible with out-of-source builds by "Michał Górny"
1 Another step into increasing compatibility between in-source
2 and out-of-source builds.
3 ---
4 gx86/eclass/distutils-r1.eclass | 4 +---
5 1 file changed, 1 insertion(+), 3 deletions(-)
6
7 diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
8 index 757c094..0c5abff 100644
9 --- a/gx86/eclass/distutils-r1.eclass
10 +++ b/gx86/eclass/distutils-r1.eclass
11 @@ -546,10 +546,8 @@ distutils-r1_run_phase() {
12 pushd "${BUILD_DIR}" >/dev/null || die
13 fi
14 local BUILD_DIR=${BUILD_DIR}/build
15 - else
16 - local PYTHONPATH="${BUILD_DIR}/lib:${PYTHONPATH}"
17 - export PYTHONPATH
18 fi
19 + local -x PYTHONPATH="${BUILD_DIR}/lib:${PYTHONPATH}"
20
21 local TMPDIR=${T}/${EPYTHON}
22
23 --
24 1.8.1.4