summaryrefslogtreecommitdiff
blob: 71b02ee912561b1f3a29aca9c0992f1a7797162a (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
diff -r -U1 spyder-2.1.13.orig/setup.py spyder-2.1.13/setup.py
--- spyder-2.1.13.orig/setup.py	2013-01-04 20:05:24.000000000 +0700
+++ spyder-2.1.13/setup.py	2013-01-15 02:10:31.085350157 +0700
@@ -15,3 +15,2 @@
 from distutils.command.build import build
-from sphinx import setup_command
 import os
@@ -42,30 +41,2 @@
 
-# Sphinx build (documentation)
-class MyBuild(build):
-    def has_doc(self):
-        setup_dir = os.path.dirname(os.path.abspath(__file__))
-        return os.path.isdir(os.path.join(setup_dir, 'doc'))
-    sub_commands = build.sub_commands + [('build_doc', has_doc)]
-
-
-class MyBuildDoc(setup_command.BuildDoc):
-    def run(self):
-        build = self.get_finalized_command('build')
-        sys.path.insert(0, os.path.abspath(build.build_lib))
-        dirname = self.distribution.get_command_obj('build').build_purelib
-        self.builder_target_dir = osp.join(dirname, 'spyderlib', 'doc')
-        try:
-            setup_command.BuildDoc.run(self)
-        except UnicodeDecodeError:
-            print >>sys.stderr, "ERROR: unable to build documentation "\
-                                "because Sphinx do not handle source path "\
-                                "with non-ASCII characters. Please try to "\
-                                "move the source package to another location "\
-                                "(path with *only* ASCII characters)."        
-        sys.path.pop(0)
-
-
-cmdclass = {'build': MyBuild, 'build_doc': MyBuildDoc}
-
-
 NAME = 'spyder'
@@ -118,3 +89,3 @@
                                      ('.mo', '.svg', '.png'))},
-      requires=["rope (>=0.9.2)", "sphinx (>=0.6.0)", "PyQt4 (>=4.4)"],
+      requires=["rope (>=0.9.2)", "PyQt4 (>=4.4)"],
       scripts=[osp.join('scripts', fname) for fname in SCRIPTS],
@@ -137,3 +108,2 @@
                    'Topic :: Scientific/Engineering',
-                   'Topic :: Software Development :: Widget Sets'],
-      cmdclass=cmdclass)
+                   'Topic :: Software Development :: Widget Sets'])