Commit 48dc9497 authored by Eric Coissac's avatar Eric Coissac

Try to solve dependencies with sphinx at the first install

parent 2614654b
...@@ -4,11 +4,8 @@ Created on 20 oct. 2012 ...@@ -4,11 +4,8 @@ Created on 20 oct. 2012
@author: coissac @author: coissac
''' '''
import os
from obidistutils.command.build_ctools import build_ctools from obidistutils.command.build_ctools import build_ctools
from distutils.sysconfig import customize_compiler
from distutils.errors import DistutilsSetupError from distutils.errors import DistutilsSetupError
from distutils import log
class build_cexe(build_ctools): class build_cexe(build_ctools):
......
...@@ -4,22 +4,39 @@ Created on 10 mars 2015 ...@@ -4,22 +4,39 @@ Created on 10 mars 2015
@author: coissac @author: coissac
''' '''
from sphinx.setup_command import BuildDoc as ori_build_sphinx from distutils import log
class build_sphinx(ori_build_sphinx): try:
''' from sphinx.setup_command import BuildDoc as ori_build_sphinx
Build Sphinx documentation in html, epub and man formats
''' class build_sphinx(ori_build_sphinx):
'''
Build Sphinx documentation in html, epub and man formats
'''
description = __doc__
def run(self):
self.builder='html'
self.finalize_options()
ori_build_sphinx.run(self)
self.builder='epub'
self.finalize_options()
ori_build_sphinx.run(self)
self.builder='man'
self.finalize_options()
ori_build_sphinx.run(self)
except ImportError:
from distutils.core import Command
description = __doc__ class build_sphinx(Command):
'''
def run(self): Build Sphinx documentation in html, epub and man formats
self.builder='html' '''
self.finalize_options()
ori_build_sphinx.run(self) description = __doc__
self.builder='epub'
self.finalize_options() def run(self):
ori_build_sphinx.run(self) log.info("Sphinx not installed documentation will not be generated")
self.builder='man'
self.finalize_options()
ori_build_sphinx.run(self) \ No newline at end of file
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment