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 1QMPFz-0006Mj-1W for garchives@archives.gentoo.org; Tue, 17 May 2011 18:44:35 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 668011C144; Tue, 17 May 2011 18:44:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 74D261C00A for ; Tue, 17 May 2011 18:43:39 +0000 (UTC) Received: from [192.168.1.102] (ck4-ge1.ap.jaw.cz [77.95.45.20]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: scarabeus) by smtp.gentoo.org (Postfix) with ESMTPSA id 5F5D11B4014 for ; Tue, 17 May 2011 18:43:38 +0000 (UTC) Message-ID: <4DD2C1D1.1060107@gentoo.org> Date: Tue, 17 May 2011 20:43:29 +0200 From: =?UTF-8?B?VG9tw6HFoSBDaHbDoXRhbA==?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110506 Lightning/1.0b3pre Thunderbird/3.1.10 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 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] PyXML References: <201105102321.31616.Arfrever@gentoo.org> In-Reply-To: <201105102321.31616.Arfrever@gentoo.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 219bfc970060ec39e414f6eec8a37f8f -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dne 10.5.2011 23:21, Arfrever Frehtes Taifersar Arahesis napsal(a): > PyXML is dead: > http://mail.python.org/pipermail/xml-sig/2004-November/010735.html > http://mail.python.org/pipermail/xml-sig/2006-June/011545.html > > PyXML provides _xmlplus module, which replaces xml module (from standard library) at run time, > which might result in various problems. > > I'm planning to implement the following solution: > - Python >=2.7.1-r2:2.7 will provide xml.use_pyxml() function. Calling of this function will be > necessary to use replace xml module with _xmlplus module. Python >=2.7.1-r2:2.7 will be added > to the tree in next week and will be temporarily package.masked. Later this change will be > backported to new versions in older slots. > - All packages, which use PyXML, will have to be patched to call xml.use_pyxml(). The following > code should be added before first import of anything from xml module: > > import xml > if hasattr(xml, "use_pyxml"): > xml.use_pyxml() > > This code works with previous versions of Python, so no changes in dependencies are needed. > As I already asked, what problem do we have to keep PyXML in main tree to be used with python2. Your specific hack introduce different behaviour for python2.7.1-r2 where you do not explain the need for it at all. It is just python2 thing and we can happily use PyXML as it works even with latest python-2.7. So where is the problem? Failing python tests? Then patch PyXML itself to use it properly, but keep it as is. When app migrate to py3 they will have to loose the PyXML dependency anyway. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3SwdEACgkQHB6c3gNBRYenyACeOMsOpUJwgPLBeyAZtcHeVVAH j7sAn0B8f8/UINM4xVsws9xDsURrnYGj =H8Jw -----END PGP SIGNATURE-----