Boost logo

Boost :

Subject: [boost] [mpl][doc]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 12:45:19


On 03/16/09 01:34, Aleksey Gurtovoy wrote:
[snip]
> Nope, it should have been
>
> typedef iter_fold<s,state,apply2<lambda<op>::type,_1,deref<_2> >
> >::type t;
> ^ ^^^^^^^^^^^^^^^^
[snip]
> Fixed in the doc sources in the trunk
> (https://svn.boost.org/trac/boost/changeset/51791).
[snip]

After doing `svn update`, got the changes. Then read the:

   /libs/mpl/doc/src/README.txt

and followed instructions, which worked (after becoming root) until:

   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?

Is there anyway to modify this to avoid the need to become
root in order to write to /usr/bin or
/usr/lib/python2.5/site-packages/docutils?

-regards,
Larry


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