From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 23A8913828F for ; Thu, 3 Jan 2013 23:13:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5110821C055; Thu, 3 Jan 2013 23:13:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 908DF21C055 for ; Thu, 3 Jan 2013 23:13:42 +0000 (UTC) Received: from [10.171.88.37] (107-1-212-138-ip-static.hfc.comcastbusiness.net [107.1.212.138]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id A1A1233BF55 for ; Thu, 3 Jan 2013 23:13:41 +0000 (UTC) Message-ID: <50E610A0.7010205@gentoo.org> Date: Thu, 03 Jan 2013 18:13:36 -0500 From: Mike Gilbert User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 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 To: gentoo-python Subject: [gentoo-python] [PATCH] Don't warn about USE_PYTHON when the package does not support typical python versions X-Enigmail-Version: 1.4.2 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigC2F63125CB04C66A3173DA50" X-Archives-Salt: 3d6dfa03-2e70-4ce3-b6e8-31633baf92e7 X-Archives-Hash: ee3e9ac671c9ff45d068e7b6103953b0 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC2F63125CB04C66A3173DA50 Content-Type: multipart/mixed; boundary="------------070308070403060507090504" This is a multi-part message in MIME format. --------------070308070403060507090504 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Attached is a quick and dirty patch to prevent the typical user from being advised to set USE_PYTHON for packages which support both python2 and/or python3, but not 2.7 or 3.2. If someone can come up with a better fix, by all means send it my way. For example, see the message produced by dev-python/simplejson-3.0.4-r1. * It seems that you need to set USE_PYTHON to make sure that legacy * packages will be built with respect to PYTHON_TARGETS correctly: * * USE_PYTHON=3D'2.7' * * Please note that after changing the USE_PYTHON variable, you may need * to run 'python-updater' to rebuild affected packages. * * For more information on python.eclass compatibility, please see * the appropriate python-r1 User's Guide chapter [1]. * * [1] http://www.gentoo.org/proj/en/Python/python-r1/user-guide.xml#doc_chap2 --------------070308070403060507090504 Content-Type: text/plain; charset=windows-1252; name="python-r1-use-python-hack.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="python-r1-use-python-hack.patch" SW5kZXg6IHB5dGhvbi1yMS5lY2xhc3MKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL3Zhci9j dnNyb290L2dlbnRvby14ODYvZWNsYXNzL3B5dGhvbi1yMS5lY2xhc3MsdgpyZXRyaWV2aW5n IHJldmlzaW9uIDEuMzQKZGlmZiAtdSAtQiAtcjEuMzQgcHl0aG9uLXIxLmVjbGFzcwotLS0g cHl0aG9uLXIxLmVjbGFzcwkyIEphbiAyMDEzIDIxOjEyOjQ0IC0wMDAwCTEuMzQKKysrIHB5 dGhvbi1yMS5lY2xhc3MJMyBKYW4gMjAxMyAyMjo1ODo1NSAtMDAwMApAQCAtMzgyLDYgKzM4 MiwxMCBAQAogCQkJIyBpcyBpbnN0YWxsZWQuCiAJCQlpZiBbWyAhICR7cHkyKzF9ICYmICR7 ZGlzX3B5Mn0gXV07IHRoZW4KIAkJCQlkZWJ1Zy1wcmludCAiJHtGVU5DTkFNRX06IC0+IGFs bCBweTIgdmVyc2lvbnMgZGlzYWJsZWQiCisJCQkJaWYgISBoYXMgcHl0aG9uMl83ICIke1BZ VEhPTl9DT01QQVRbQF19IjsgdGhlbgorCQkJCQlkZWJ1Zy1wcmludCAiJHtGVU5DTkFNRX06 IC0tLT4gcGFja2FnZSBkb2VzIG5vdCBzdXBwb3J0IDIuNyIKKwkJCQkJcmV0dXJuIDAKKwkJ CQlmaQogCQkJCWlmIGhhc192ZXJzaW9uICc9ZGV2LWxhbmcvcHl0aG9uLTIqJzsgdGhlbgog CQkJCQlkZWJ1Zy1wcmludCAiJHtGVU5DTkFNRX06IC0tLT4gYnV0ID1weXRob24tMiogaW5z dGFsbGVkISIKIAkJCQkJcmV0dXJuIDEKQEAgLTM4OSw2ICszOTMsMTAgQEAKIAkJCWZpCiAJ CQlpZiBbWyAhICR7cHkzKzF9ICYmICR7ZGlzX3B5M30gXV07IHRoZW4KIAkJCQlkZWJ1Zy1w cmludCAiJHtGVU5DTkFNRX06IC0+IGFsbCBweTMgdmVyc2lvbnMgZGlzYWJsZWQiCisJCQkJ aWYgISBoYXMgcHl0aG9uM18yICIke1BZVEhPTl9DT01QQVRbQF19IjsgdGhlbgorCQkJCQlk ZWJ1Zy1wcmludCAiJHtGVU5DTkFNRX06IC0tLT4gcGFja2FnZSBkb2VzIG5vdCBzdXBwb3J0 IDMuMiIKKwkJCQkJcmV0dXJuIDAKKwkJCQlmaQogCQkJCWlmIGhhc192ZXJzaW9uICc9ZGV2 LWxhbmcvcHl0aG9uLTMqJzsgdGhlbgogCQkJCQlkZWJ1Zy1wcmludCAiJHtGVU5DTkFNRX06 IC0tLT4gYnV0ID1weXRob24tMyogaW5zdGFsbGVkISIKIAkJCQkJcmV0dXJuIDE= --------------070308070403060507090504-- --------------enigC2F63125CB04C66A3173DA50 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) iF4EAREIAAYFAlDmEKQACgkQC77qH+pIQ6Qt8gD9Hix0nvjJZgCca82g9LkJe6hh OdH/6CYyDRc9YtIJ7MYA/16X6ZBMQ1qN+PmBqPJOnG2Szm7WgvaKkHqDdW2EaWMk =yA2O -----END PGP SIGNATURE----- --------------enigC2F63125CB04C66A3173DA50--