Gentoo Archives: gentoo-devhelp

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-devhelp@l.g.o
Subject: [gentoo-devhelp] Re: PYTHON_DEPEND syntax
Date: Tue, 16 Aug 2011 15:27:51
Message-Id: j2e28d$dmk$1@dough.gmane.org
In Reply to: Re: [gentoo-devhelp] PYTHON_DEPEND syntax by Nathan Phillip Brink
1 On 08/16/2011 06:21 PM, Nathan Phillip Brink wrote:
2 > On Tue, Aug 16, 2011 at 05:25:47PM +0300, Nikos Chantziaras wrote:
3 >> I'm not sure I understand PYTHON_DEPEND. If I have a package that works
4 >> with Python 2.6 and newer (like 2.7), but is incompatible with 3.x
5 >> versions, how do I state that? What I want is:
6 >>
7 >> >= 2.6&& < 3
8 >
9 > I think that the correct syntax for this would be
10 > PYTHON_DEPEND="2:2.6" if I'm reading the docs for
11 > _python_parse_PYTHON_DEPEND() correctly.
12 >
13 > Are you installing a python module or just something which uses
14 > python? For a module, you will need to define PYTHON_RESTRICT_ABIS to
15 > "2.[1-5] 3" after setting SUPPORT_PYTHON_ABIS=1 and doing all the
16 > magic to support multiple ABIs (which might be none if you're using
17 > distutils).
18 >
19 > There is useful information at
20 > http://www.gentoo.org/proj/en/Python/developersguide.xml too.
21
22 Thanks. I tend to RTFM less these days directly on Gentoo.org since
23 most of the time the docs are outdated and don't apply to what I'm
24 looking for. But in this case, they helped :-)

Replies

Subject Author
Re: [gentoo-devhelp] Re: PYTHON_DEPEND syntax Peter Volkov <pva@g.o>