Gentoo Archives: gentoo-dev

From: "Tomáš Chvátal" <scarabeus@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] PyXML
Date: Wed, 11 May 2011 10:31:09
Message-Id: 4DCA653A.9070801@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 Apart from not being developed is PyXML actualy broken so we can't wait
27 for upstream [1] to migrate their packages?
28
29 I see just one open bug for it when I search bugzilla.
30
31 [1] http://qa-reports.gentoo.org/output/genrdeps/rindex/dev-python/pyxml
32 -----BEGIN PGP SIGNATURE-----
33 Version: GnuPG v2.0.17 (GNU/Linux)
34 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
35
36 iEYEARECAAYFAk3KZToACgkQHB6c3gNBRYeNkwCghH3dd0WwCKDJ7ugyvQ5t+wUB
37 BIoAmQGPiM2lnsas0xvhogC5vb2BqaD4
38 =T/Sq
39 -----END PGP SIGNATURE-----

Replies

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