From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-python+bounces-444-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 0DD9C1381F3
	for <garchives@archives.gentoo.org>; Mon, 22 Apr 2013 10:51:45 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 679E0E0B14;
	Mon, 22 Apr 2013 10:51:43 +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 F40CCE0B14
	for <gentoo-python@lists.gentoo.org>; Mon, 22 Apr 2013 10:51:42 +0000 (UTC)
Received: from pomiocik.localdomain (s241.wifi.put.poznan.pl [150.254.132.242])
	(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 33F8E33DD80;
	Mon, 22 Apr 2013 10:51:41 +0000 (UTC)
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
To: gentoo-python@lists.gentoo.org
Cc: python@gentoo.org,
	=?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Subject: [gentoo-python] [PATCH 2/4] Perform wrapper setup in all codepaths.
Date: Mon, 22 Apr 2013 12:52:56 +0200
Message-Id: <1366627978-8571-2-git-send-email-mgorny@gentoo.org>
X-Mailer: git-send-email 1.8.1.5
In-Reply-To: <20130422125150.5a2396e6@pomiocik>
References: <20130422125150.5a2396e6@pomiocik>
Precedence: bulk
List-Post: <mailto:gentoo-python@lists.gentoo.org>
List-Help: <mailto:gentoo-python+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-python+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-python+subscribe@lists.gentoo.org>
List-Id: Discussions centering around the Python ecosystem in Gentoo Linux <gentoo-python.gentoo.org>
X-BeenThere: gentoo-python@gentoo.org
X-BeenThere: gentoo-python@lists.gentoo.org
X-Archives-Salt: 201fb754-3ca6-452a-8788-3b5ea09d3d3e
X-Archives-Hash: ce0ec9076accbe032ad52dfabf884dfc

Currently, the wrapper was set up only in the fallback line. Instead,
set it up consistently in all cases.
---
 gx86/eclass/python-any-r1.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gx86/eclass/python-any-r1.eclass b/gx86/eclass/python-any-r1.eclass
index 3799491..2ecbfbd 100644
--- a/gx86/eclass/python-any-r1.eclass
+++ b/gx86/eclass/python-any-r1.eclass
@@ -180,6 +180,7 @@ python-any-r1_pkg_setup() {
 	if [[ ${EPYTHON} ]]; then
 		if _python_EPYTHON_supported "${EPYTHON}"; then
 			python_export EPYTHON PYTHON
+			python_wrapper_setup "${T}"
 			return
 		fi
 	fi
@@ -194,6 +195,7 @@ python-any-r1_pkg_setup() {
 			break
 		elif _python_EPYTHON_supported "${i}"; then
 			python_export "${i}" EPYTHON PYTHON
+			python_wrapper_setup "${T}"
 			return
 		fi
 	done
-- 
1.8.1.5