[pytango] 36/483: added no-doc option

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:14:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.

commit 47ab2963b03f4c5294ba456439bec6f745f99c12
Author: tiagocoutinho <tiagocoutinho at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date:   Thu May 26 16:35:20 2011 +0000

    added no-doc option
    
    git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@16960 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
 setup.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 82e1939..6ea4af0 100644
--- a/setup.py
+++ b/setup.py
@@ -36,9 +36,9 @@ import distutils.sysconfig
 
 try:
     import sphinx
-    raise Exception()
     from sphinx.setup_command import BuildDoc
-except:
+except Exception,e:
+    print e
     sphinx = None
 
 try:
@@ -140,6 +140,10 @@ class build(dftbuild):
             return False
         if sphinx is None:
             return False
+        v = map(int, sphinx.__version__.split("."))
+        if v <= [0,6,5]:
+            print "Documentation will not be generated: sphinx version (%s) too low. Needs 0.6.6" % sphinx.__version__
+            return False 
         setup_dir = os.path.dirname(os.path.abspath(__file__))
         return os.path.isdir(os.path.join(setup_dir, 'doc'))
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git



More information about the debian-science-commits mailing list