public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Gilbert <floppym@gentoo.org>
To: gentoo-python@lists.gentoo.org
Cc: python@gentoo.org
Subject: Re: [gentoo-python] Re: [PATCH] Add python_gen_cond_dep().
Date: Sun, 30 Dec 2012 12:12:22 -0500	[thread overview]
Message-ID: <CAJ0EP41Zh=Vtg9Dq6qE=5dZpuTf9OPMUOyUuE=m0ggowtH5qQQ@mail.gmail.com> (raw)
In-Reply-To: <20121227234852.44b5d758@pomiocik.lan>

On Thu, Dec 27, 2012 at 5:48 PM, Michał Górny <mgorny@gentoo.org> wrote:
> On Thu, 27 Dec 2012 17:38:44 -0500
> Mike Gilbert <floppym@gentoo.org> wrote:
>
>> On Thu, Dec 27, 2012 at 4:59 PM, Michał Górny <mgorny@gentoo.org> wrote:
>> > I don't have a good idea how to make enforcing USE deps inside easier
>> > than $(python_gen_cond_dep dev-foo/bar[$(python_gen_usedep IMPLS)]
>> > IMPLS) without adding some risky magic.
>>
>> Just to confirm my thoughts, say we have this:
>>
>> PYTHON_COMPAT=( python2_6 python2_7 python3_2 )
>>
>> RDEPEND="$(python_gen_cond_dep dev-python/foo[$(python_gen_usedep
>> python2*)] python2*)"
>>
>> I think you would end up with something like this:
>>
>> python_targets_python2_6? (
>> python_targets_python2_6?,python_targets_python2_7?] )
>> python_targets_python2_7? (
>> python_targets_python2_6?,python_targets_python2_7?] )
>>
>> Right? Looks a bit odd, but I guess it works.
>
> Well, you forgot about 'dev-python/foo[' but otherwise correct.
>
> I was wondering if we could do something saner here but it either falls
> back to using @PUT_USEDEPS_HERE@ or some implicit parsing.
>
> It would be great if we could do at least:
>
>   RDEPEND="$(python_gen_cond_dep dev-python/foo[${PYTHON_USEDEP}]
>     python2*)"
>
> but people would have to actually quote '${PYTHON_USEDEP}' to get it
> evaluated in the right order so it'd just be even more confusing.
>
> What worries me are cases like 'python{2_5,2_6,3_1} jython2_5' where
> you'd have to repeat such a long list two times.
>

I guess this looks ok; we can always extend it later if necessary.


      reply	other threads:[~2012-12-30 17:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-27 21:59 [gentoo-python] [PATCH] Add python_gen_cond_dep() Michał Górny
2012-12-27 22:38 ` [gentoo-python] " Mike Gilbert
2012-12-27 22:40   ` Mike Gilbert
2012-12-27 22:48   ` Michał Górny
2012-12-30 17:12     ` 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='CAJ0EP41Zh=Vtg9Dq6qE=5dZpuTf9OPMUOyUuE=m0ggowtH5qQQ@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