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 1Nlw34-0006o5-7V for garchives@archives.gentoo.org; Mon, 01 Mar 2010 03:11:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EC603E08FF; Mon, 1 Mar 2010 03:11:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 38318E084E for ; Mon, 1 Mar 2010 03:11:32 +0000 (UTC) Received: from afta-gentoo.localnet (ip-85-198-235-97.broker.com.pl [85.198.235.97]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 97F4F1B40F1 for ; Mon, 1 Mar 2010 03:11:31 +0000 (UTC) From: Arfrever Frehtes Taifersar Arahesis To: Gentoo Development Subject: Re: [gentoo-dev] Python-3.2-related changes Date: Mon, 1 Mar 2010 04:13:10 +0100 User-Agent: KMail/1.13.0 (Linux/2.6.32-tuxonice-r5-AFTA; KDE/4.4.0; x86_64; ; ) References: <201002051740.29640.Arfrever@gentoo.org> In-Reply-To: <201002051740.29640.Arfrever@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3437809.BxWgmlxHFl"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201003010413.44053.Arfrever@gentoo.org> X-Archives-Salt: 7f86fa94-81af-450b-bda4-d8a03940c7d5 X-Archives-Hash: eb7ba1f4eeaa9125b359698cae4198cd --nextPart3437809.BxWgmlxHFl Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Arfrever Frehtes Taifersar Arahesis 2010-02-05 17:40:00 napisa=C5=82(a): > The following changes should be made in ebuilds of packages supporting on= ly Python 2: > - Dependency on Python 2 should be set correctly. You can specify it dire= ctly in > {,R}DEPEND or use PYTHON_DEPEND. >=20 > Example: > PYTHON_DEPEND=3D"2" >=20 > inherit python >=20 > - Miscellaneous actions should be executed with correct version of Python. >=20 > - In ebuilds of packages supporting installation for multiple versions = of Python, > please remember to disable installation for all versions of Python 3. > (Please do not use python_set_active_version() in ebuilds of these pa= ckages.) >=20 > Example: > RESTRICT_PYTHON_ABIS=3D"3.*" >=20 > - In ebuilds of packages not supporting installation for multiple versi= ons of Python, > set active version of Python using python_set_active_version(). > (Please avoid passing precisely specified Python ABI to python_set_ac= tive_version().) >=20 > Example: > pkg_setup() { > python_set_active_version 2 > } >=20 > (If given package currently cannot be installed for multiple versions= of Python, > but it is theoretically possible (e.g. this package installs .py file= s into > /usr/lib/pythonX.Y/site-packages and does not install any non-version= ed libraries > into /usr/lib), then please try to adjust ebuilds of this package to = allow > installation for multiple versions of Python.) I forgot about 2 other types of changes: =2D Shebangs in installed scripts should be correct. If build system instal= ls scripts with too generic shebangs (e.g. '#!/usr/bin/python'), then you can use python_convert_shebangs() to convert shebangs. Example: src_install() { ... python_convert_shebangs -r 2 "${D}usr/bin" } (Please note that wrapper scripts generated by python_generate_wrapper_sc= ripts() work with all versions of Python from 2.4 to 3.2, so shebangs in these scripts= do not need any changes.) =2D Some deprecated functions (python_version(), distutils_python_version()= ) and variables (${python}, ${PYVER} etc.) should not be used. Documentation [1] has been updated. I will start filing bugs maybe in this week. [1] http://www.gentoo.org/proj/en/Python/developersguide.xml =2D-=20 Arfrever Frehtes Taifersar Arahesis --nextPart3437809.BxWgmlxHFl Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iQIcBAABAgAGBQJLizDnAAoJEFtpjAED8H0YjMcP/24J4+7mEuSjgV91iB7DOLcv l0G3BtBpF8h68J/J9tpPy9bcKueJWedofLKaBHplZ556XOyVi0/uvlCe9GaWwczB t9iLtmX1VYDzejLdwwJZ9gcX4mJ+ZLVjwjgMwu+bSdjbphmtR+JV2NOX1ixKbaB/ SHKxp0MR1jue/GxF+wIcwnBfs6TJzetvTQpCMM8own8cX3n9/riRr03nuTJS1w5Y j+aCou92OJ5Bc4+9naQGpb+UEFa4o3lGz5WQu9WJOevPV2+rLNquGbSSsp4ogbcd 3Sj8mq0ytmK0YkyKkhaJNvXfPMTx3f6he4sueMwHArExBPlfMWLkjp4OVFm6goL7 bJTinr8obVrq34oNUm/rSkzq2JgK+nqpTtmTPrgTZDF7hPdDbkgYdGWbYhfnQBZM cb07Y1PAtrgAor+58p0co2WPP9CXmwmFaidt2oQaSHd1SMt0K4RNVq8wf19e8TX4 +11WjV6lcn08yrEbydfRZqncm+5UivCDw09cb7vopHhk8IHmn9e0bgjoHnowlwC9 khIWjrE0LUo7U3r7YrI4Oyc7uZMEaXzsedMHqBo8CYTSGukr7YRONuPyym6++Utp wT1Kr4YBiSTt5PejUZQ8BQF/LS9ONXRmOgkza8omO2sw2J4AEyGvFXLvfvq3hir3 phhgQ+/19fIzvdOOFBik =Bjdg -----END PGP SIGNATURE----- --nextPart3437809.BxWgmlxHFl--