Gentoo Archives: gentoo-devhelp

From: Nathan Phillip Brink <binki@g.o>
To: Nikos Chantziaras <realnc@×××××.de>
Cc: gentoo-devhelp@l.g.o
Subject: Re: [gentoo-devhelp] PYTHON_DEPEND syntax
Date: Tue, 16 Aug 2011 15:19:31
Message-Id: 20110816152144.GK8077@ohnopublishing.net
In Reply to: [gentoo-devhelp] PYTHON_DEPEND syntax by Nikos Chantziaras
1 On Tue, Aug 16, 2011 at 05:25:47PM +0300, Nikos Chantziaras wrote:
2 > I'm not sure I understand PYTHON_DEPEND. If I have a package that works
3 > with Python 2.6 and newer (like 2.7), but is incompatible with 3.x
4 > versions, how do I state that? What I want is:
5 >
6 > >= 2.6 && < 3
7
8 I think that the correct syntax for this would be
9 PYTHON_DEPEND="2:2.6" if I'm reading the docs for
10 _python_parse_PYTHON_DEPEND() correctly.
11
12 Are you installing a python module or just something which uses
13 python? For a module, you will need to define PYTHON_RESTRICT_ABIS to
14 "2.[1-5] 3" after setting SUPPORT_PYTHON_ABIS=1 and doing all the
15 magic to support multiple ABIs (which might be none if you're using
16 distutils).
17
18 There is useful information at
19 http://www.gentoo.org/proj/en/Python/developersguide.xml too.
20
21 --
22 binki
23
24 Look out for missing or extraneous apostrophes!

Replies

Subject Author
[gentoo-devhelp] Re: PYTHON_DEPEND syntax Nikos Chantziaras <realnc@×××××.de>