Linux HOWTOs

About | Home | Search


HOWTO: python-docutils
Description: Python-based text processing system
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# python-docutils
# ===============
# Python 2.3 - 2.6 or 3.1

# As I write this, it worked for me using Python 2.7.2

cd
test -f installed/python-docutils.tar.gz &&
 mv -f installed/python-docutils.tar.gz .
test ! -f python-docutils.tar.gz &&
 wget http://docutils.svn.sourceforge.net/viewvc/docutils/trunk/docutils/\
?view=tar -O python-docutils.tar.gz

mkdir -p -m 0700 src
cd src
test -d ./docutils && rm -r ./docutils
tar xzvf ~/python-docutils.tar.gz
cd docutils
test $UID = 0 && chown -R root:root .

# Become root to install it
su

# Install it
./setup.py install

# Make sure your non-root user can remove the source later
chown -R $USER .
chmod -R u+w .

# Become your non-root user again
exit

cd
mkdir -p -m 0700 installed
mv -f ./python-docutils.tar.gz installed/

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>