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 19:23:29
Message-Id: 4DD2CACC.6020507@gentoo.org
In Reply to: Re: [gentoo-dev] PyXML by Arfrever Frehtes Taifersar Arahesis
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Dne 17.5.2011 21:12, Arfrever Frehtes Taifersar Arahesis napsal(a):
5 > 2011-05-17 20:43:29 Tomáš Chvátal napisał(a):
6 >> Dne 10.5.2011 23:21, Arfrever Frehtes Taifersar Arahesis napsal(a):
7 >>> PyXML is dead:
8 >>> http://mail.python.org/pipermail/xml-sig/2004-November/010735.html
9 >>> http://mail.python.org/pipermail/xml-sig/2006-June/011545.html
10 >>>
11 >>> PyXML provides _xmlplus module, which replaces xml module (from standard library) at run time,
12 >>> which might result in various problems.
13 >>>
14 >>> I'm planning to implement the following solution:
15 >>> - Python >=2.7.1-r2:2.7 will provide xml.use_pyxml() function. Calling of this function will be
16 >>> necessary to use replace xml module with _xmlplus module. Python >=2.7.1-r2:2.7 will be added
17 >>> to the tree in next week and will be temporarily package.masked. Later this change will be
18 >>> backported to new versions in older slots.
19 >>> - All packages, which use PyXML, will have to be patched to call xml.use_pyxml(). The following
20 >>> code should be added before first import of anything from xml module:
21 >>>
22 >>> import xml
23 >>> if hasattr(xml, "use_pyxml"):
24 >>> xml.use_pyxml()
25 >>>
26 >>> This code works with previous versions of Python, so no changes in dependencies are needed.
27 >>>
28 >> As I already asked,
29 >> what problem do we have to keep PyXML in main tree to be used with python2.
30 >>
31 >> Your specific hack introduce different behaviour for python2.7.1-r2
32 >> where you do not explain the need for it at all.
33 >
34 > I had already explained it in many places.
35 >
36 >> It is just python2 thing and we can happily use PyXML as it works even
37 >> with latest python-2.7.
38 >>
39 >> So where is the problem?
40 >
41 > Fixes for at least the following bugs are absent when PyXML is installed:
42 > http://bugs.python.org/issue4877
43 > http://bugs.python.org/issue6098
44 > http://bugs.python.org/issue5762
45 > http://bugs.python.org/issue5027
46 > http://bugs.python.org/issue9054
47 > http://bugs.python.org/issue777884
48 > http://bugs.python.org/issue1433694
49 > http://bugs.python.org/issue847665
50 > http://bugs.python.org/issue1472827
51 > http://bugs.python.org/issue1094164
52 > http://bugs.python.org/issue1309009
53 > http://bugs.python.org/issue1262320
54 > http://bugs.python.org/issue925152
55 >
56 2 options
57 1) fix PyXML
58 2) drop all packages including PyXML
59
60 Altering system package is not the option.
61 -----BEGIN PGP SIGNATURE-----
62 Version: GnuPG v2.0.17 (GNU/Linux)
63 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
64
65 iEYEARECAAYFAk3SyswACgkQHB6c3gNBRYcoHQCfbfQ/s7YQ2vJanRJ7JFppaE28
66 oWMAnicY/HXe2RQF+anhOLQ4pBj6aP0i
67 =xauv
68 -----END PGP SIGNATURE-----

Replies

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