Gentoo Archives: gentoo-dev

From: "Tomáš Chvátal" <scarabeus@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] PyXML
Date: Tue, 17 May 2011 18:44:35
Message-Id: 4DD2C1D1.1060107@gentoo.org
In Reply to: [gentoo-dev] PyXML by Arfrever Frehtes Taifersar Arahesis
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Dne 10.5.2011 23:21, Arfrever Frehtes Taifersar Arahesis napsal(a):
5 > PyXML is dead:
6 > http://mail.python.org/pipermail/xml-sig/2004-November/010735.html
7 > http://mail.python.org/pipermail/xml-sig/2006-June/011545.html
8 >
9 > PyXML provides _xmlplus module, which replaces xml module (from standard library) at run time,
10 > which might result in various problems.
11 >
12 > I'm planning to implement the following solution:
13 > - Python >=2.7.1-r2:2.7 will provide xml.use_pyxml() function. Calling of this function will be
14 > necessary to use replace xml module with _xmlplus module. Python >=2.7.1-r2:2.7 will be added
15 > to the tree in next week and will be temporarily package.masked. Later this change will be
16 > backported to new versions in older slots.
17 > - All packages, which use PyXML, will have to be patched to call xml.use_pyxml(). The following
18 > code should be added before first import of anything from xml module:
19 >
20 > import xml
21 > if hasattr(xml, "use_pyxml"):
22 > xml.use_pyxml()
23 >
24 > This code works with previous versions of Python, so no changes in dependencies are needed.
25 >
26 As I already asked,
27 what problem do we have to keep PyXML in main tree to be used with python2.
28
29 Your specific hack introduce different behaviour for python2.7.1-r2
30 where you do not explain the need for it at all.
31
32 It is just python2 thing and we can happily use PyXML as it works even
33 with latest python-2.7.
34
35 So where is the problem?
36
37 Failing python tests? Then patch PyXML itself to use it properly, but
38 keep it as is. When app migrate to py3 they will have to loose the PyXML
39 dependency anyway.
40 -----BEGIN PGP SIGNATURE-----
41 Version: GnuPG v2.0.17 (GNU/Linux)
42 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
43
44 iEYEARECAAYFAk3SwdEACgkQHB6c3gNBRYenyACeOMsOpUJwgPLBeyAZtcHeVVAH
45 j7sAn0B8f8/UINM4xVsws9xDsURrnYGj
46 =H8Jw
47 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] PyXML Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o>