From aef0a4616f3799dcd82ecde4cbd7c7704a01564a Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 22 Jul 2009 23:52:18 +0000 Subject: [PATCH] Don't depend on sphinx to build --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9318b3139..bb83d6dd3 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,12 @@ from distutils import cmd, sysconfig from distutils.command.build import build as _build from distutils.command.clean import clean as _clean from setuptools.command.install import install as _install -from sphinx.setup_command import BuildDoc +try: + from sphinx.setup_command import BuildDoc +except ImportError: + class BuildDoc(object): + pass + import msgfmt import os