diff options
author | Michał Górny <mgorny@gentoo.org> | 2012-11-01 12:18:31 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2012-11-01 12:18:31 +0000 |
commit | 507d6e721713506a96ed7bb6819a588b0f51fd48 (patch) | |
tree | a168d157ed8cf6a13b6aef5d9f5f150ab6e8e618 /eclass/distutils-r1.eclass | |
parent | stable ppc, bug #440368 (diff) | |
download | historical-507d6e721713506a96ed7bb6819a588b0f51fd48.tar.gz historical-507d6e721713506a96ed7bb6819a588b0f51fd48.tar.bz2 historical-507d6e721713506a96ed7bb6819a588b0f51fd48.zip |
Explicitly set library build dir in out-of-source builds.
Diffstat (limited to 'eclass/distutils-r1.eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 2944e7649aee..00f3d465c669 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.15 2012/10/31 14:28:02 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.16 2012/11/01 12:18:31 mgorny Exp $ # @ECLASS: distutils-r1 # @MAINTAINER: @@ -151,7 +151,12 @@ esetup.py() { die 'Out-of-source build requested, yet BUILD_DIR unset.' fi - args+=( build --build-base "${BUILD_DIR}" ) + args+=( + build + --build-base "${BUILD_DIR}" + # using a single directory for them helps us export ${PYTHONPATH} + --build-lib "${BUILD_DIR}/lib" + ) fi set -- "${PYTHON:-python}" setup.py \ |