[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: [gentoo-dev] [PATCH distutils-r1 1/2] Explicitly set --build-lib for distutils.
From: Michał Górny <mgorny () gentoo ! org>
Date: 2012-10-31 13:37:09
Message-ID: 1351690630-18973-1-git-send-email-mgorny () gentoo ! org
[Download RAW message or body]
Some of the packages want to access that directory (lxml for example),
and they have to do globbing to guess the suffix. Since we use
per-implementation build dirs anyway, let's just use a simple '/lib'
there.
I'm doing this for out-of-source builds only since we don't set
--build-base for in-source anyway. With in-source builds, we allow
setup.py to control the build locations. You can treat it as a safe
switch to disable our hackery for packages which are broken by it.
---
gx86/eclass/distutils-r1.eclass | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
index 172cc70..3b86afd 100644
--- a/gx86/eclass/distutils-r1.eclass
+++ b/gx86/eclass/distutils-r1.eclass
@@ -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 \
--
1.7.12.4
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic