docs/code_ext.py | 4 ++-- docs/main/GettingStarted.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit dfd1ff048bab17dca085188553742a763158b200 Author: Luke Macken lmacken@redhat.com Date: Wed Feb 18 00:20:02 2009 -0500
Don't require pysvn and mercurial to build docs anymore
diff --git a/docs/code_ext.py b/docs/code_ext.py index 349c137..beb4f85 100755 --- a/docs/code_ext.py +++ b/docs/code_ext.py @@ -21,9 +21,7 @@ from docutils.statemachine import ViewList
from sphinx import util
-import pysvn import nose -from mercurial import hg, ui
beginmarker_re = re.compile(r'##{(?P<section>.+)}') @@ -73,6 +71,7 @@ def search(source, section): class HgClient: """ Class that represents a Mercurial client """ def __init__(self, path): + from mercurial import hg, ui self.repo = hg.repository(ui.ui(interactive=False), path=path)
def get_file(self, path, revision='tip'): @@ -82,6 +81,7 @@ class HgClient: class SVNClient: """ Class that represents a Subversion client """ def __init__(self): + import pysvn self.client = pysvn.Client()
def get_file(self, path, revision='HEAD'): diff --git a/docs/main/GettingStarted.rst b/docs/main/GettingStarted.rst index f865d07..4c0c113 100644 --- a/docs/main/GettingStarted.rst +++ b/docs/main/GettingStarted.rst @@ -24,7 +24,7 @@ You'll need the `virtualenv http://pypi.python.org/pypi/virtualenv`_ package.
.. code-block:: bash
- # yum -y install python-virtualenv pysvn mercurial PyOpenSSL python-memcached + # yum -y install python-virtualenv PyOpenSSL python-memcached
The `start-moksha` script mentioned below should install all of the necessary dependencies. However, it will attempt to compile a few things, such as lxml. So, you may need to install some additional dependencies like `libxml2` and `libxslt` in order to build it. If you're using yum, you can easily install all of the build requirements by doing:
moksha-commits@lists.fedorahosted.org