1 |
arfrever 09/10/01 22:47:25 |
2 |
|
3 |
Added: docutils-0.6-extra_modules.patch |
4 |
Log: |
5 |
Version bump. |
6 |
(Portage version: 14469-svn/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-python/docutils/files/docutils-0.6-extra_modules.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/docutils/files/docutils-0.6-extra_modules.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/docutils/files/docutils-0.6-extra_modules.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: docutils-0.6-extra_modules.patch |
15 |
=================================================================== |
16 |
--- setup.py |
17 |
+++ setup.py |
18 |
@@ -182,19 +182,8 @@ |
19 |
List of (module name, minimum __version__ string, [attribute names]).""" |
20 |
|
21 |
def get_extras(): |
22 |
- extras = [] |
23 |
- for module_name, version, attributes in extra_modules: |
24 |
- try: |
25 |
- module = __import__(module_name) |
26 |
- if version and module.__version__ < version: |
27 |
- raise ValueError |
28 |
- for attribute in attributes or []: |
29 |
- getattr(module, attribute) |
30 |
- print ('"%s" module already present; ignoring extras/%s.py.' |
31 |
- % (module_name, module_name)) |
32 |
- except (ImportError, AttributeError, ValueError): |
33 |
- extras.append(module_name) |
34 |
- return extras |
35 |
+ # Old method does not work for upgrading/downgrading docutils. |
36 |
+ return ["roman"] |
37 |
|
38 |
|
39 |
if __name__ == '__main__' : |