From: Mike Gilbert <floppym@gentoo.org>
To: gentoo-python@lists.gentoo.org
Cc: python@gentoo.org
Subject: [gentoo-python] Re: [PATCH 10/10 updated] Replace static EPYTHON setting with python-any-r1.
Date: Thu, 29 Nov 2012 14:58:25 -0500 [thread overview]
Message-ID: <CAJ0EP43e-XE6XO5Yu49FOSMZBM1mw8ouSYTEJ4bH6mDx4g6aog@mail.gmail.com> (raw)
In-Reply-To: <1354218268-14064-1-git-send-email-mgorny@gentoo.org>
On Thu, Nov 29, 2012 at 2:44 PM, Michał Górny <mgorny@gentoo.org> 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="2"
> WANT_AUTOMAKE="none"
> WANT_LIBTOOL="none"
>
> -inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs
> +# Bootstrapping Python requires Python 2.
> +PYTHON_COMPAT=( 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 toolchain-funcs
>
> MY_P="Python-${PV}"
> PATCHSET_REVISION="1"
> @@ -50,6 +53,7 @@ RDEPEND="app-arch/bzip2
> )
> !!<sys-apps/portage-2.1.9"
> DEPEND="${RDEPEND}
> + ${PYTHON_DEPS}
> virtual/pkgconfig
> >=sys-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="python${PV%%.*}" || die "emake failed"
> + default
>
> # Work around bug 329499. See also bug 413751.
> pax-mark m python
> --
> 1.8.0
>
prev parent reply other threads:[~2012-11-29 19:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-26 21:20 [gentoo-python] python2.7 ebuild patches, split up Michał Górny
2012-11-26 21:20 ` [gentoo-python] [PATCH 01/10] python-utils-r1: support all EAPIs Michał Górny
2012-11-26 21:20 ` [gentoo-python] [PATCH 02/10] keywords Michał Górny
2012-11-26 21:20 ` [gentoo-python] [PATCH 03/10] Package the compiled .pyc & .pyo files Michał Górny
2012-11-26 21:20 ` [gentoo-python] [PATCH 04/10] Commonize out $(python_get_libdir) in src_install() Michał Górny
2012-11-26 21:20 ` [gentoo-python] [PATCH 05/10] Replace python_get_libdir with inlined path Michał Górny
2012-11-26 21:20 ` [gentoo-python] [PATCH 06/10] Stop using python.eclass Michał Górny
2012-11-26 21:20 ` [gentoo-python] [PATCH 07/10] Install 'epython' module for python-exec Michał Górny
2012-11-26 21:20 ` [gentoo-python] [PATCH 08/10] Clean up DESCRIPTION and whitespace Michał Górny
2012-11-26 21:20 ` [gentoo-python] [PATCH 09/10] Clean up the bsddb messages Michał Górny
2012-11-26 21:20 ` [gentoo-python] [PATCH 10/10] Stop passing meaningless EPYTHON to make Michał Górny
2012-11-26 21:54 ` Michał Górny
2012-11-29 19:44 ` [gentoo-python] [PATCH 10/10 updated] Replace static EPYTHON setting with python-any-r1 Michał Górny
2012-11-29 19:58 ` Mike Gilbert [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ0EP43e-XE6XO5Yu49FOSMZBM1mw8ouSYTEJ4bH6mDx4g6aog@mail.gmail.com \
--to=floppym@gentoo.org \
--cc=gentoo-python@lists.gentoo.org \
--cc=python@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox