Changeset 4354

Show
Ignore:
Timestamp:
03/09/09 00:44:58 (4 years ago)
Author:
gpolo
Message:

Check for sphinx presence to build documentation or not.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/setup.py

    r4353 r4354  
    153153    def build_html_doc(self): 
    154154        """Build the html documentation.""" 
    155         import sphinx 
     155        try: 
     156            import sphinx 
     157        except ImportError: 
     158            self.warn("sphinx not found, documentation won't be build.") 
     159            return 
    156160 
    157161        sphinx_ver = sphinx.__version__