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