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 38D011381F3 for ; Thu, 29 Nov 2012 19:58:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85A8021C09D; Thu, 29 Nov 2012 19:58:29 +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 E758421C09D for ; Thu, 29 Nov 2012 19:58:28 +0000 (UTC) Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id DA0C633D8B0 for ; Thu, 29 Nov 2012 19:58:27 +0000 (UTC) Received: by mail-ee0-f53.google.com with SMTP id c50so8961522eek.40 for ; Thu, 29 Nov 2012 11:58:25 -0800 (PST) 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 MIME-Version: 1.0 Received: by 10.14.176.66 with SMTP id a42mr13112663eem.34.1354219105246; Thu, 29 Nov 2012 11:58:25 -0800 (PST) Received: by 10.223.102.129 with HTTP; Thu, 29 Nov 2012 11:58:25 -0800 (PST) In-Reply-To: <1354218268-14064-1-git-send-email-mgorny@gentoo.org> References: <1353964837-24198-1-git-send-email-mgorny@gentoo.org> <1354218268-14064-1-git-send-email-mgorny@gentoo.org> Date: Thu, 29 Nov 2012 14:58:25 -0500 Message-ID: Subject: [gentoo-python] Re: [PATCH 10/10 updated] Replace static EPYTHON setting with python-any-r1. From: Mike Gilbert To: gentoo-python@lists.gentoo.org Cc: python@gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: d68e8eed-8cf9-40d4-84f1-bf18a8ca9413 X-Archives-Hash: 3ff15fdc00a312745c3cbb3caab4394f On Thu, Nov 29, 2012 at 2:44 PM, Micha=C5=82 G=C3=B3rny = wrote: > This way, the ebuild will check for the best installed Python version > satisfying the dep and use it if necessary. > --- > gx86/dev-lang/python/python-2.7.3-r3.ebuild | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/gx86/dev-lang/python/python-2.7.3-r3.ebuild b/gx86/dev-lang/= python/python-2.7.3-r3.ebuild > index 2182837..b6349a2 100644 > --- a/gx86/dev-lang/python/python-2.7.3-r3.ebuild > +++ b/gx86/dev-lang/python/python-2.7.3-r3.ebuild > @@ -6,7 +6,10 @@ EAPI=3D"2" > WANT_AUTOMAKE=3D"none" > WANT_LIBTOOL=3D"none" > > -inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1= toolchain-funcs > +# Bootstrapping Python requires Python 2. > +PYTHON_COMPAT=3D( python{2_5,2_6,2_7} pypy{1_8,1_9} ) > + Using pypy when building python just feels like a bad idea to me. Let's not go there. > +inherit autotools eutils flag-o-matic multilib pax-utils python-any-r1 t= oolchain-funcs > > MY_P=3D"Python-${PV}" > PATCHSET_REVISION=3D"1" > @@ -50,6 +53,7 @@ RDEPEND=3D"app-arch/bzip2 > ) > !! DEPEND=3D"${RDEPEND} > + ${PYTHON_DEPS} > virtual/pkgconfig > >=3Dsys-devel/autoconf-2.65 > !sys-devel/gcc[libffi]" > @@ -73,6 +77,8 @@ pkg_setup() { > ewarn "You might need to migrate your databases." > fi > fi > + > + python-any-r1_pkg_setup > } > > src_prepare() { > @@ -197,7 +203,7 @@ src_configure() { > } > > src_compile() { > - emake EPYTHON=3D"python${PV%%.*}" || die "emake failed" > + default > > # Work around bug 329499. See also bug 413751. > pax-mark m python > -- > 1.8.0 >