summaryrefslogtreecommitdiff
path: root/dev-python/docutils/files/docutils-0.6-extra_modules.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/docutils/files/docutils-0.6-extra_modules.patch')
-rw-r--r--dev-python/docutils/files/docutils-0.6-extra_modules.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-python/docutils/files/docutils-0.6-extra_modules.patch b/dev-python/docutils/files/docutils-0.6-extra_modules.patch
new file mode 100644
index 00000000000..ca5de4b7fc4
--- /dev/null
+++ b/dev-python/docutils/files/docutils-0.6-extra_modules.patch
@@ -0,0 +1,24 @@
+--- setup.py
++++ setup.py
+@@ -182,19 +182,8 @@
+ List of (module name, minimum __version__ string, [attribute names])."""
+
+ def get_extras():
+- extras = []
+- for module_name, version, attributes in extra_modules:
+- try:
+- module = __import__(module_name)
+- if version and module.__version__ < version:
+- raise ValueError
+- for attribute in attributes or []:
+- getattr(module, attribute)
+- print ('"%s" module already present; ignoring extras/%s.py.'
+- % (module_name, module_name))
+- except (ImportError, AttributeError, ValueError):
+- extras.append(module_name)
+- return extras
++ # Old method does not work for upgrading/downgrading docutils.
++ return ["roman"]
+
+
+ if __name__ == '__main__' :