* Re: [gentoo-dev] New eclass for Python
@ 2012-04-04 8:50 99% ` Corentin Chary
0 siblings, 0 replies; 1+ results
From: Corentin Chary @ 2012-04-04 8:50 UTC (permalink / raw
To: gentoo-dev; +Cc: justin
On Mon, Mar 26, 2012 at 6:23 PM, Krzysztof Pawlik <nelchael@gentoo.org> wrote:
> On 26/03/12 18:11, Krzysztof Pawlik wrote:
>> On 26/03/12 09:20, justin wrote:
>>> On 25/03/12 20:56, Krzysztof Pawlik wrote:
>>>> On 28/02/12 22:13, Krzysztof Pawlik wrote:
>>>>> If there are no objections then during the weekend (March 3, 4) I will add this
>>>>> to portage (after finishing remaining TODO items, PyPy requires 4G of RAM(!!)).
>>>>
>>>> Hello,
>>>>
>>>> Slightly late due to Real Life™ but finally it's in the main tree :)
>>>>
>>>> (and yes - I've tested it with pypy - works as expected :)
>>>>
>>>
>>> Hi,
>>>
>>> is there any documentation beside the man page somewhere?
>>
>> No.
>>
>>> I tried to port some ebuilds but as soon I set
>>>
>>> PYTHON_COMPAT="python2_7 python2_6 python2_5 pypy1_8"
>>>
>>> inherit python-distutils-ng
>>>
>>> I get
>>>
>>> REQUIRED_USE: USE flag 'python_targets_python3_1' is not in IUSE
>>>
>>> Did I do something wrong, or is there something not straight in the eclass?
>>
>> Can you send me the whole ebuild off-list?
>>
>> There are two ebuilds using the eclass that I've used as tests:
>> http://git.overlays.gentoo.org/gitweb/?p=dev/nelchael.git;a=tree;f=dev-python;h=f1a8e00e3e6df33806d8972c8898f1187163bd3d;hb=HEAD
>
> Ok, found a bug: REQUIRED_USE can't contain elements not in USE, so if you
> excluded python3_1 from PYTHON_COMPAT it didn't appear in IUSE too ->
> REQUIRED_USE contained invalid value. Fixed by below patch:
>
> nelchael@s-lappy ~/.../gentoo-x86/eclass$ cvs diff
> Index: python-distutils-ng.eclass
> ===================================================================
> RCS file: /var/cvsroot/gentoo-x86/eclass/python-distutils-ng.eclass,v
> retrieving revision 1.2
> diff -u -r1.2 python-distutils-ng.eclass
> --- python-distutils-ng.eclass 26 Mar 2012 06:12:53 -0000 1.2
> +++ python-distutils-ng.eclass 26 Mar 2012 16:20:52 -0000
> @@ -105,11 +105,11 @@
> esac
> }
>
> -required_use_str=" || (
> - python_targets_python2_5 python_targets_python2_6 python_targets_python2_7
> - python_targets_python3_1 python_targets_python3_2
> - python_targets_jython2_5
> - python_targets_pypy1_7 python_targets_pypy1_8 )"
> +required_use_str=""
> +for impl in ${PYTHON_COMPAT}; do
> + required_use_str="${required_use_str} python_targets_${impl}"
> +done
> +required_use_str=" || ( ${required_use_str} )"
> if [[ "${PYTHON_OPTIONAL}" = "yes" ]]; then
> IUSE+="python"
> REQUIRED_USE+=" python? ( ${required_use_str} )"
>
>
> --
> Krzysztof Pawlik <nelchael at gentoo.org> key id: 0xF6A80E46
> desktop-misc, java, vim, kernel, python, apache...
>
I have a feature request for distutil-ng (or maybe it's already
possible but I don't know how).
I have a package that depends on python-dateutil:python-2 for
python2_x and python-dateutil:python-3 for python3_x.
Would it be possible to have virtual targets like "python, python2,
python3, pypi, jithon" ?
Thanks,
--
Corentin Chary
http://xf.iksaif.net
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2012-02-28 21:13 [gentoo-dev] New eclass for Python Krzysztof Pawlik
2012-03-25 18:56 ` Krzysztof Pawlik
2012-03-26 7:20 ` justin
2012-03-26 16:11 ` Krzysztof Pawlik
2012-03-26 16:23 ` Krzysztof Pawlik
2012-04-04 8:50 99% ` Corentin Chary
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox