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 F171A138435 for ; Sat, 12 Jan 2013 20:35:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2A6E221C018; Sat, 12 Jan 2013 20:35:11 +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 BF66921C032 for ; Sat, 12 Jan 2013 20:35:09 +0000 (UTC) Received: from pomiocik.lan (77-253-148-103.adsl.inetia.pl [77.253.148.103]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 4304C33D9C6; Sat, 12 Jan 2013 18:51:54 +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] Export best implementation build dir as BUILD_DIR in common phases. Date: Sat, 12 Jan 2013 19:52:21 +0100 Message-Id: <1358016741-15029-1-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 1.8.1 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: 227008e1-e4fb-4e87-a9bf-36e685c5f46f X-Archives-Hash: 13022396106f807a40128913ad2ba06c This is more friendly than BEST_BUILD_DIR and should not cause trouble in the common cases. --- gx86/eclass/distutils-r1.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass index 8156a36..9d6c714 100644 --- a/gx86/eclass/distutils-r1.eclass +++ b/gx86/eclass/distutils-r1.eclass @@ -450,9 +450,11 @@ distutils-r1_run_phase() { # @DESCRIPTION: # Run the given command, restoring the best-implementation state. _distutils-r1_run_common_phase() { + local DISTUTILS_ORIG_BUILD_DIR=${BUILD_DIR} + local EPYTHON=${_DISTUTILS_BEST_IMPL[0]} local PYTHON=${_DISTUTILS_BEST_IMPL[1]} - local BEST_BUILD_DIR=${_DISTUTILS_BEST_IMPL[2]} + local BUILD_DIR=${_DISTUTILS_BEST_IMPL[2]} local PYTHONPATH=${_DISTUTILS_BEST_IMPL[3]} export EPYTHON PYTHON PYTHONPATH -- 1.8.1