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

test -f installed/python-docutils.tar.gz &&
 mv -f installed/python-docutils.tar.gz .
test ! -f python-docutils.tar.gz &&
?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

# Install it
./ 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

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

Back to the list

Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>