Gentoo Archives: gentoo-dev

From: Brian Harring <ferringb@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] New eclass for Python
Date: Thu, 05 Apr 2012 00:46:27
Message-Id: 20120405004541.GB6994@localhost
In Reply to: Re: [gentoo-dev] New eclass for Python by Mike Gilbert
1 On Wed, Apr 04, 2012 at 08:36:37PM -0400, Mike Gilbert wrote:
2 > On Wed, Apr 4, 2012 at 8:07 PM, Brian Harring <ferringb@×××××.com> wrote:
3 > > On Wed, Apr 04, 2012 at 10:41:03AM -0400, Mike Gilbert wrote:
4 > >> On Wed, Apr 4, 2012 at 4:50 AM, Corentin Chary <corentin.chary@×××××.com> wrote:
5 > >> > I have a feature request for distutil-ng (or maybe it's already
6 > >> > possible but I don't know how).
7 > >> >
8 > >> > I have a package that depends on python-dateutil:python-2 for
9 > >> > python2_x and python-dateutil:python-3 for python3_x.
10 > >> > Would it be possible to have virtual targets like "python, python2,
11 > >> > python3, pypi, jithon" ?
12 > >> >
13 > >>
14 > >> One way to implement this would be to have a separate function that
15 > >> you would call to generate abi-specific dependencies.
16 > >
17 > > Think through the performance implications of that, and the fact that
18 > > moves control/decisions outside of the PM resolvers purview.
19 > >
20 > > If it's use controlled and is part of metadata, sure, but anything
21 > > else? ??Not so much. :)
22 >
23 > All I'm talking about is a function or function(s) to generate deps like these:
24 >
25 > python2_6? ( dev-python/python-dateutil[python2_6] )
26 > python2_7? ( dev-python/python-dateutil[python2_7] )
27 >
28 > I'm not sure how that would affect "performance".
29
30 Nah, that's fine- that's metadata level representation of it.
31
32 Sorry, aparenytly I misread your original email- interpretted it as
33 shelling out for that decision (something people propose
34 occasionally, and usually needs to be stomped out w/ maximal force),
35 rather than representing it properly in dependencies.
36
37 What you're intending there is perfectly sane/acceptable; pardon the
38 noise ;)
39
40 ~brian