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 <gentoo-python@lists.gentoo.org>
Subject: Re: [gentoo-python] [PATCH] Introduce python_setup() as a common name for Python setup function.
Date: Sun, 20 Oct 2013 12:26:51 -0400	[thread overview]
Message-ID: <CAJ0EP40udThrtrLQRPmR2PEDYhf4an8E6uWTTmV_HeoNuvz2XA@mail.gmail.com> (raw)
In-Reply-To: <20131020174723.55105549@gentoo.org>

On Sun, Oct 20, 2013 at 11:47 AM, Michał Górny <mgorny@gentoo.org> wrote:
> Dnia 2013-10-20, o godz. 11:33:45
> Mike Gilbert <floppym@gentoo.org> napisał(a):
>
>> On Sun, Oct 20, 2013 at 11:12 AM, Michał Górny <mgorny@gentoo.org> wrote:
>> > Dnia 2013-10-20, o godz. 10:53:34
>> > Mike Gilbert <floppym@gentoo.org> napisał(a):
>> >
>> >> On Sun, Oct 20, 2013 at 3:36 AM, Michał Górny <mgorny@gentoo.org> wrote:
>> >> > As described in the ml, the new function does:
>> >> >
>> >> > * in python-any-r1, choose and set up the best installed impl,
>> >> >
>> >> > * in python-single-r1, read PYTHON_SINGLE_TARGET and set it up,
>> >> >
>> >> > * in python-r1, call python_export_best + python_wrapper_setup.
>> >> >
>> >> > In other words, it's a common way of getting Python build environment
>> >> > set up in the ebuild scope.
>> >>
>> >> Invoking python_setup from pkg_setup in any eclass seems sub-optimal;
>> >> especially so in python-any-r1. However, I realize there isn't a great
>> >> place to put it.
>> >
>> > I don't understand. Could you rephrase?
>> >
>>
>> The python stuff is generally only used in "src" phases, so pkg_setup
>> is the wrong place for it.. As well, it would be better to set up the
>> python wrappers and environment in a phase where the sandbox and
>> userpriv are active to prevent permissions problems like we had with
>> Paludis recently (there's a bug, but I'm not going to look for it).
>
> I can understand you but can't really think of a good way of doing
> this. The only other reasonable phase for this is src_prepare(),
> and overriding it will result in hell breaking loose...
>

Right. I just wanted to go "on the record" as saying that this is not
optimal, but there is probably no better alternative. Carry on. ^_^


  reply	other threads:[~2013-10-20 16:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-20  7:36 [gentoo-python] [PATCH] Introduce python_setup() as a common name for Python setup function Michał Górny
2013-10-20 14:53 ` Mike Gilbert
2013-10-20 15:12   ` Michał Górny
2013-10-20 15:33     ` Mike Gilbert
2013-10-20 15:47       ` Michał Górny
2013-10-20 16:26         ` Mike Gilbert [this message]
2013-10-22 15:18 ` Michał Górny

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=CAJ0EP40udThrtrLQRPmR2PEDYhf4an8E6uWTTmV_HeoNuvz2XA@mail.gmail.com \
    --to=floppym@gentoo.org \
    --cc=gentoo-python@lists.gentoo.org \
    --cc=mgorny@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