From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Sj8zo-00012Q-At for garchives@archives.gentoo.org; Mon, 25 Jun 2012 13:06:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EEF38E0C3D; Mon, 25 Jun 2012 13:06:20 +0000 (UTC) Received: from icp-osb-irony-out1.external.iinet.net.au (icp-osb-irony-out1.external.iinet.net.au [203.59.1.210]) by pigeon.gentoo.org (Postfix) with ESMTP id 3B59BE0C3D for ; Mon, 25 Jun 2012 13:06:19 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvwEAOBh6E98qSq4/2dsb2JhbABEtiCBB4JGE2dYMgSIJZdroHKLR4JSgxwDiEaEQoglhXmKCYJsgUk X-IronPort-AV: E=Sophos;i="4.77,471,1336320000"; d="scan'208";a="8663483" Received: from unknown (HELO archtester.homenetwork) ([124.169.42.184]) by icp-osb-irony-out1.iinet.net.au with ESMTP; 25 Jun 2012 21:06:18 +0800 Date: Mon, 25 Jun 2012 20:59:17 +0800 From: IAN DELANEY To: gentoo-python@lists.gentoo.org Subject: [gentoo-python] pypy Message-ID: <20120625205917.5f7ddce9@archtester.homenetwork> Organization: homenetwork X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.9; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 24817274-4b2a-446c-981b-08a0b5b09a25 X-Archives-Hash: 49e937267201eb6d54a6da9e26ebf385 1. Despite the limited interest in things pypy, for those who have one, here is touch of support for it. I'm not cutting && pasting a 525 line file here. I have made a pypy aware python-eselect. Challenged by the perrenial Arfrever, whose truncated nick currently escapes me, it even does eselect python show --pypy1 --ABI correctly now (== 2.7-pypy-1.8) so it is at least less broken. In fact I even think it's not broken. However, the essence of testing is to see it work outside my cosy little archtester system. 2. The most favoured subject of all. python.eclass. Currently, python.eclass is pypy unaware when it comes to PYTHON_USE_WITH. go to python_pkg_setup and follow proceedings. So there are some packages that are pypy restricted simply because they have a PYTHON_USE_WITH variable set, but not all. Between the two, we have USE flags doc,(trivial), examples(trivial), ncurses, sqlite, ssl && xml in common. Without ever looking, I suspect the need for use flags ncurses, sqlite, ssl && xml in python would be similarly warranted in pypy. That leaves packages that have gdbm, ipv6, readline, threads, tk and wide-unicode set in USE_PYTHON_WITH that will bail out screaming ooopsie, pypy doesn't have use python_only_FLAG set -> pypy cast aside again in a most unjust manner. Please consider; python_pkg_setup_check_USE_flags() { local python_atom USE_flag one_atom python_atom="$(python_get_implementational_package)" for USE_flag in ${PYTHON_USE_WITH}; do one_atom="${python_atom}[${USE_flag}]}" if ! has_version "${python_atom}[${USE_flag}]" && [[ "${one_atom:11:4}" != "pypy" ]]; then eerror "Please rebuild ${python_atom} with the following USE flags enabled: ${PYTHON_USE_WITH}" die "Please rebuild ${python_atom} with the following USE flags enabled: ${PYTHON_USE_WITH}" fi Well this 3 line change brings pypy back in the fold at least, basically excluding pypy from and check_of_USE_flags. This makes for a start, but is not the panacea. It begs the questions; How to re-author in consideration of pypy with the use flags set it has in common? How to re-author in consideration of whether pypy needs them set at all? How to re-author in consideration of pypy needing no use flags set and is perfectly fine? How to re-author it before the perrenial ...... oh never mind. pypy needs some more 'support' to rise above being the curiosity that it is. -- eselect python show --pypy1 --ABI kind regards Ian Delaney