From: Krzysztof Pawlik <nelchael@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: justin <jlec@gentoo.org>
Subject: Re: [gentoo-dev] New eclass for Python
Date: Mon, 26 Mar 2012 18:23:32 +0200 [thread overview]
Message-ID: <4F709804.8060607@gentoo.org> (raw)
In-Reply-To: <4F70954D.5000401@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 2565 bytes --]
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...
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 554 bytes --]
next prev parent reply other threads:[~2012-03-26 16:24 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-28 21:13 [gentoo-dev] New eclass for Python Krzysztof Pawlik
2012-02-29 3:21 ` Sergei Trofimovich
2012-02-29 17:34 ` Krzysztof Pawlik
2012-02-29 5:13 ` [gentoo-dev] Re: [gentoo-python] " Mike Gilbert
2012-02-29 17:35 ` Krzysztof Pawlik
2012-02-29 7:49 ` [gentoo-dev] " "Paweł Hajdan, Jr."
2012-02-29 17:38 ` Krzysztof Pawlik
2012-02-29 18:03 ` Jeroen Roovers
2012-02-29 8:11 ` [gentoo-dev] Re: [gentoo-python] " Dirkjan Ochtman
2012-02-29 17:39 ` Krzysztof Pawlik
2012-02-29 18:39 ` Mike Gilbert
2012-02-29 8:17 ` [gentoo-dev] " Fabian Groffen
2012-02-29 17:34 ` Krzysztof Pawlik
2012-02-29 19:51 ` Alexandre Rostovtsev
2012-02-29 20:24 ` Krzysztof Pawlik
2012-02-29 21:08 ` Andreas K. Huettel
2012-02-29 21:19 ` Krzysztof Pawlik
2012-02-29 21:57 ` Alexandre Rostovtsev
2012-03-01 18:42 ` Krzysztof Pawlik
2012-03-03 7:59 ` [gentoo-dev] Re: [gentoo-python] " Arfrever Frehtes Taifersar Arahesis
2012-03-03 8:18 ` Zac Medico
2012-03-25 18:56 ` [gentoo-dev] " Krzysztof Pawlik
2012-03-25 19:08 ` Luca Barbato
2012-03-26 7:20 ` justin
2012-03-26 16:11 ` Krzysztof Pawlik
2012-03-26 16:23 ` Krzysztof Pawlik [this message]
2012-04-04 8:50 ` Corentin Chary
2012-04-04 14:22 ` Mike Gilbert
2012-04-04 14:29 ` Corentin Chary
2012-04-04 14:41 ` Mike Gilbert
2012-04-05 0:07 ` Brian Harring
2012-04-05 0:36 ` Mike Gilbert
2012-04-05 0:45 ` Brian Harring
2012-03-26 7:21 ` justin
2012-03-26 16:02 ` Krzysztof Pawlik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F709804.8060607@gentoo.org \
--to=nelchael@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=jlec@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox