* [gentoo-devhelp] PYTHON_DEPEND syntax
@ 2011-08-16 14:25 Nikos Chantziaras
2011-08-16 15:21 ` Nathan Phillip Brink
0 siblings, 1 reply; 4+ messages in thread
From: Nikos Chantziaras @ 2011-08-16 14:25 UTC (permalink / raw
To: gentoo-devhelp
I'm not sure I understand PYTHON_DEPEND. If I have a package that works
with Python 2.6 and newer (like 2.7), but is incompatible with 3.x
versions, how do I state that? What I want is:
>= 2.6 && < 3
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-devhelp] PYTHON_DEPEND syntax
2011-08-16 14:25 [gentoo-devhelp] PYTHON_DEPEND syntax Nikos Chantziaras
@ 2011-08-16 15:21 ` Nathan Phillip Brink
2011-08-16 15:27 ` [gentoo-devhelp] " Nikos Chantziaras
0 siblings, 1 reply; 4+ messages in thread
From: Nathan Phillip Brink @ 2011-08-16 15:21 UTC (permalink / raw
To: Nikos Chantziaras; +Cc: gentoo-devhelp
[-- Attachment #1: Type: text/plain, Size: 884 bytes --]
On Tue, Aug 16, 2011 at 05:25:47PM +0300, Nikos Chantziaras wrote:
> I'm not sure I understand PYTHON_DEPEND. If I have a package that works
> with Python 2.6 and newer (like 2.7), but is incompatible with 3.x
> versions, how do I state that? What I want is:
>
> >= 2.6 && < 3
I think that the correct syntax for this would be
PYTHON_DEPEND="2:2.6" if I'm reading the docs for
_python_parse_PYTHON_DEPEND() correctly.
Are you installing a python module or just something which uses
python? For a module, you will need to define PYTHON_RESTRICT_ABIS to
"2.[1-5] 3" after setting SUPPORT_PYTHON_ABIS=1 and doing all the
magic to support multiple ABIs (which might be none if you're using
distutils).
There is useful information at
http://www.gentoo.org/proj/en/Python/developersguide.xml too.
--
binki
Look out for missing or extraneous apostrophes!
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-devhelp] Re: PYTHON_DEPEND syntax
2011-08-16 15:21 ` Nathan Phillip Brink
@ 2011-08-16 15:27 ` Nikos Chantziaras
2011-08-25 7:30 ` Peter Volkov
0 siblings, 1 reply; 4+ messages in thread
From: Nikos Chantziaras @ 2011-08-16 15:27 UTC (permalink / raw
To: gentoo-devhelp
On 08/16/2011 06:21 PM, Nathan Phillip Brink wrote:
> On Tue, Aug 16, 2011 at 05:25:47PM +0300, Nikos Chantziaras wrote:
>> I'm not sure I understand PYTHON_DEPEND. If I have a package that works
>> with Python 2.6 and newer (like 2.7), but is incompatible with 3.x
>> versions, how do I state that? What I want is:
>>
>> >= 2.6&& < 3
>
> I think that the correct syntax for this would be
> PYTHON_DEPEND="2:2.6" if I'm reading the docs for
> _python_parse_PYTHON_DEPEND() correctly.
>
> Are you installing a python module or just something which uses
> python? For a module, you will need to define PYTHON_RESTRICT_ABIS to
> "2.[1-5] 3" after setting SUPPORT_PYTHON_ABIS=1 and doing all the
> magic to support multiple ABIs (which might be none if you're using
> distutils).
>
> There is useful information at
> http://www.gentoo.org/proj/en/Python/developersguide.xml too.
Thanks. I tend to RTFM less these days directly on Gentoo.org since
most of the time the docs are outdated and don't apply to what I'm
looking for. But in this case, they helped :-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-devhelp] Re: PYTHON_DEPEND syntax
2011-08-16 15:27 ` [gentoo-devhelp] " Nikos Chantziaras
@ 2011-08-25 7:30 ` Peter Volkov
0 siblings, 0 replies; 4+ messages in thread
From: Peter Volkov @ 2011-08-25 7:30 UTC (permalink / raw
To: gentoo-devhelp
В Втр, 16/08/2011 в 18:27 +0300, Nikos Chantziaras пишет:
> I tend to RTFM less these days directly on Gentoo.org since
> most of the time the docs are outdated and don't apply to what I'm
> looking for.
Hm, it's good idea to report such issue to bugs.gentoo.org. This is the
only way to notify developers to update docs ;)
--
Peter.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-25 7:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-16 14:25 [gentoo-devhelp] PYTHON_DEPEND syntax Nikos Chantziaras
2011-08-16 15:21 ` Nathan Phillip Brink
2011-08-16 15:27 ` [gentoo-devhelp] " Nikos Chantziaras
2011-08-25 7:30 ` Peter Volkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox