From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5F842198005 for ; Sun, 17 Mar 2013 22:53:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D5291E0566; Sun, 17 Mar 2013 22:53:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 696C9E0566 for ; Sun, 17 Mar 2013 22:53:45 +0000 (UTC) Received: from pomiocik.lan (87-205-48-218.adsl.inetia.pl [87.205.48.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 420F833DAF0; Sun, 17 Mar 2013 22:53:43 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-python@lists.gentoo.org Cc: python@gentoo.org, =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-python] [PATCH distutils-r1] Pass --build-platlib & --build-purelib instead of --build-lib. Date: Sun, 17 Mar 2013 23:54:08 +0100 Message-Id: <1363560848-18278-1-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 1.8.1.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org X-Archives-Salt: ac03c42b-e44e-4d44-87b3-3b5a63afe15a X-Archives-Hash: b52e184a28e29e0f9548a4cf5026bb3a This allows splitting the library directories back without replacing the whole esetup.py invocation. Needed for wxpython, https://bugs.gentoo.org/show_bug.cgi?id=455332 --- gx86/eclass/distutils-r1.eclass | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass index 5c628ed..e1c06dd 100644 --- a/gx86/eclass/distutils-r1.eclass +++ b/gx86/eclass/distutils-r1.eclass @@ -234,8 +234,17 @@ esetup.py() { add_args+=( build --build-base "${BUILD_DIR}" - # using a single directory for them helps us export ${PYTHONPATH} - --build-lib "${BUILD_DIR}/lib" + + # using a single directory for them helps us export + # ${PYTHONPATH} and ebuilds find the sources independently + # of whether the package installs extensions or not + # + # note: due to some packages (wxpython) relying on separate + # platlib & purelib dirs, we do not set --build-lib (which + # can not be overriden with --build-*lib) + --build-platlib "${BUILD_DIR}/lib" + --build-purelib "${BUILD_DIR}/lib" + # make the ebuild writer lives easier --build-scripts "${BUILD_DIR}/scripts" ) -- 1.8.1.5