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 2/4] In-source builds: override build locations as well.
Date: Sun, 24 Feb 2013 12:47:39
Message-Id: 1361710067-8869-2-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 Since BUILD_DIR is now useful and collision-free there, we can use it to
2 obtain expectable install locations.
3 ---
4 gx86/eclass/distutils-r1.eclass | 4 ++--
5 1 file changed, 2 insertions(+), 2 deletions(-)
6
7 diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
8 index 7a1551b..757c094 100644
9 --- a/gx86/eclass/distutils-r1.eclass
10 +++ b/gx86/eclass/distutils-r1.eclass
11 @@ -228,8 +228,8 @@ esetup.py() {
12 debug-print-function ${FUNCNAME} "${@}"
13
14 local add_args=()
15 - if [[ ! ${DISTUTILS_IN_SOURCE_BUILD} ]]; then
16 - if [[ ! ${BUILD_DIR} ]]; then
17 + if [[ ! ${BUILD_DIR} ]]; then
18 + if [[ ! ${DISTUTILS_IN_SOURCE_BUILD} ]]; then
19 die 'Out-of-source build requested, yet BUILD_DIR unset.'
20 fi
21
22 --
23 1.8.1.4