wiki:InstallationInstructions
Last modified 7 years ago Last modified on 2010-07-04 18:20:50

Websourcebrowser installation

Prerequisites

Websourcebrowser requires only Python, version 2.5 or later. It's recommended though not strictly necessary to also install Pygments to get syntax highlighting.

Using Websourcebrowser without installation

Though it's recommended, you don't have to install Websourcebrowser. Instead you can get away with extracting the source archive (see below) and adding the extracted directory to the PYTHONPATH environment variable. For example, if the directory is /home/me/downloads/websourcebrowser-0.1, add that to PYTHONPATH. Then change to the directory and start browser.py with the wanted arguments:

$ python browser.py [options]

Installation

You install Websourcebrowser like most Python packages.

  • If you have an older version of Websourcebrowser installed, delete it or move it somewhere else, so that it doesn't conflict with the new version!
  • Extract the downloaded archive. Under Unix/Linux?, you usually do this from the shell prompt:
    $ tar xzf websourcebrowser-0.1.tar.gz
    
  • Change to the directory:
    $ cd websourcebrowser-0.1
    
  • Become root:
    $ su -
    
    The shell prompt changes to #.
  • To install Websourcebrowser system-wide, type:
    # python setup.py install
    
    Otherwise, consult the distutils documentation on how to install Python packages into another directory.