From: Dan Fabulich <dfabulich@wa...> - 2006-05-05 19:16:12
I'd like to use docutils on my official build machine at work, but they
require that people not modify the build machine (to make sure that the
build engine is simple and reproducible). Hence, I can't install docutils
into Python's site-packages directory.
Is it possible to use docutils without running the setup.py script and
installing it in site-packages?
The docs emphasize that docutils is not to be simply unpacked into
site-packages, but is that because setup.py is doing some important work
that I can't live without, or is that because only the docutils/docutils
directory is appropriate for installation directly into site-packages...?
If I just add the docutils/docutils directory to my PYTHONPATH, will that
be good enough?
(Note that I am not subscribed to this mailing list, so please cc me in
replies, though I will also try to check back using the web gateway.)
> If I just add the docutils/docutils directory to my PYTHONPATH, will
> that be good enough?
Yes, you can. I do. You have to add the directory *containing* the
"docutils" package directory to your PYTHONPATH, as well as the "extras"
directory beside it. On my system, I have:
Or you can add a single directory to your PYTHONPATH, and install
python setup.py install --prefix $HOME
David Goodger <http://python.net/~goodger>