Boost logo

Boost :

Subject: Re: [boost] [mpl][doc]setup.py not installing docutils.core? (was src/README.txt step 3 bug? (was Re: [mpl][fold.html] apply<op, _1, deref<_2> > correction needed.
From: Larry Evans (cppljevans_at_[hidden])
Date: 2009-03-16 17:05:38


On 03/16/09 11:45, Larry Evans wrote:
> On 03/16/09 01:34, Aleksey Gurtovoy wrote:
[snip]
> 4. Do ``python build.py``. It's going to take a couple of minutes to
> finish.
>
> which resulted in:
>
> ~/prog_dev/boost-svn/ro/boost-trunk/libs/mpl/doc/src $ ls
> README.txt build.py docutils refmanual
> ~/prog_dev/boost-svn/ro/boost-trunk/libs/mpl/doc/src $ python build.py
> Traceback (most recent call last):
> File "/usr/bin/rst2htmlrefdoc.py", line 16, in <module>
> from docutils.core import publish_cmdline, default_description
> ImportError: No module named docutils.core
>
> There is a file:
>
> libs/mpl/doc/src/docutils/tools/rst2htmlrefdoc.py
>
> So, I assume the setup.py in step 3 (where I had to become root)
> of the README.txt
>
> 3. Go to ``$BOOST_ROOT/libs/mpl/doc/src/docutils`` directory and do
> ``python setup.py install`` to install MPL-specific
> HTML/refdoc Docutils writer.
>
> should have installed the usr/bin/rst2htmlrefdoc.py file?
>
[snip]

OOPS. Should have read the error closer, in particular the part
about docutils.core. Should setup.py be installing that?
There is:

   from distutils.core import setup

in setup.py.

Here's the output from my run of setup.py:

root_at_evansl-desktop:/usr/lib/python2.5# mkdir docutils
root_at_evansl-desktop:/usr/lib/python2.5# cd
/home/evansl/prog_dev/boost-svn/ro/boost-trunk/libs/mpl/doc/src/docutils
root_at_evansl-desktop:/home/evansl/prog_dev/boost-svn/ro/boost-trunk/libs/mpl/doc/src/docutils#
python setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
creating /usr/lib/python2.5/site-packages/docutils
creating /usr/lib/python2.5/site-packages/docutils/writers
creating /usr/lib/python2.5/site-packages/docutils/writers/html4_refdoc
copying build/lib/docutils/writers/html4_refdoc/__init__.py ->
/usr/lib/python2.5/site-packages/docutils/writers/html4_refdoc
copying build/lib/docutils/writers/html4_refdoc/frames.css ->
/usr/lib/python2.5/site-packages/docutils/writers/html4_refdoc
byte-compiling
/usr/lib/python2.5/site-packages/docutils/writers/html4_refdoc/__init__.py
to __init__.pyc
running install_scripts
copying build/scripts-2.5/rst2htmlrefdoc.py -> /usr/bin
changing mode of /usr/bin/rst2htmlrefdoc.py to 755
running install_egg_info
Writing /usr/lib/python2.5/site-packages/html_refdoc-.1.egg-info
root_at_evansl-desktop:/home/evansl/prog_dev/boost-svn/ro/boost-trunk/libs/mpl/doc/src/docutils#
cd ..
root_at_evansl-desktop:/home/evansl/prog_dev/boost-svn/ro/boost-trunk/libs/mpl/doc/src#
ls
README.txt build.py docutils refmanual


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk