public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Gilbert <floppym@gentoo.org>
To: "Michał Górny" <mgorny@gentoo.org>
Cc: gentoo-python@lists.gentoo.org, python@gentoo.org
Subject: [gentoo-python] Re: [PATCH python-r1 1/2] Reuse multibuild.eclass in python_export_best().
Date: Sun, 17 Mar 2013 19:36:30 -0400	[thread overview]
Message-ID: <CAJ0EP43Qp42SQ5RLbM0hwoyzkDstiyzYwc5sd4cPmuN-kAv2hQ@mail.gmail.com> (raw)
In-Reply-To: <1363559630-17431-1-git-send-email-mgorny@gentoo.org>

On Sun, Mar 17, 2013 at 6:33 PM, Michał Górny <mgorny@gentoo.org> wrote:
> ---
>  gx86/eclass/python-r1.eclass | 22 ++++++++--------------
>  1 file changed, 8 insertions(+), 14 deletions(-)
>
> diff --git a/gx86/eclass/python-r1.eclass b/gx86/eclass/python-r1.eclass
> index 12e3baa..99bd240 100644
> --- a/gx86/eclass/python-r1.eclass
> +++ b/gx86/eclass/python-r1.eclass
> @@ -661,24 +661,18 @@ python_parallel_foreach_impl() {
>  python_export_best() {
>         debug-print-function ${FUNCNAME} "${@}"
>
> -       _python_validate_useflags
> -
>         [[ ${#} -gt 0 ]] || set -- EPYTHON PYTHON
>
> -       local impl best
> -       for impl in "${_PYTHON_ALL_IMPLS[@]}"; do
> -               if has "${impl}" "${PYTHON_COMPAT[@]}" \
> -                       && _python_impl_supported "${impl}" \
> -                       && use "python_targets_${impl}"
> -               then
> -                       best=${impl}
> -               fi
> -       done
> +       local best MULTIBUILD_VARIANTS
> +       _python_obtain_impls
>
> -       [[ ${best+1} ]] || die "python_export_best(): no implementation found!"
> +       _python_set_best() {
> +               best=${MULTIBUILD_VARIANT}
> +       }
> +       multibuild_for_best_variant _python_set_best
>
> -       debug-print "${FUNCNAME}: Best implementation is: ${impl}"
> -       python_export "${impl}" "${@}"
> +       debug-print "${FUNCNAME}: Best implementation is: ${best}"
> +       python_export "${best}" "${@}"
>  }
>
>  # @FUNCTION: python_replicate_script
> --
> 1.8.1.5
>

Seems reasonable.


      reply	other threads:[~2013-03-17 23:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-17 22:33 [gentoo-python] [PATCH python-r1 1/2] Reuse multibuild.eclass in python_export_best() Michał Górny
2013-03-17 23:36 ` 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=CAJ0EP43Qp42SQ5RLbM0hwoyzkDstiyzYwc5sd4cPmuN-kAv2hQ@mail.gmail.com \
    --to=floppym@gentoo.org \
    --cc=gentoo-python@lists.gentoo.org \
    --cc=mgorny@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