From charlesreid1

Revision as of 04:37, 19 August 2011 by Admin (talk | contribs) (Created page with "=Installation= Download from the Mechanize page here: http://wwwsearch.sourceforge.net/mechanize/download.html ==Configure/Build== First, pick a destination directory for mech...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Installation

Download from the Mechanize page here: http://wwwsearch.sourceforge.net/mechanize/download.html

Configure/Build

First, pick a destination directory for mechanize. I'll use /path/to/mechanize as an example.

Next, run the following commands:

# set installation path
export INSTALL_PATH="/path/to/mechanize"

# create the python site packages directory
export PACKAGE_PATH="${INSTALL_PATH}/lib/python2.7/site-packages"

# add the site packages to the PYTHONPATH variable
export PYTHONPATH=${PACKAGE_PATH}:${PYTHONPATH}

# build
python ./setup.py build

# install
python ./setup.py install --prefix=$[INSTALL_PATH}