summaryrefslogtreecommitdiff
blob: ca5de4b7fc4e2209b1b94ab064dc9340d485ac60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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__' :