Quality control framework/Installation

From Apertium
< Quality control framework
Revision as of 03:49, 8 May 2011 by Gekz (talk | contribs) (Created page with '== As root == To install traditionally to the Python library directory on your system: <pre> # python setup.py install </pre> == Rootless Environment == To install in a rootles…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

As root

To install traditionally to the Python library directory on your system:

# python setup.py install

Rootless Environment

To install in a rootless environment, you can create your own personal "system root". A sysroot at a minimum contains a bin/ and lib/ directory, so you may use your $HOME directory for this (and it will be used in this example.) To setup a root in your home:

$ export PYTHONPATH=$PYTHONPATH:$HOME
$ export PATH=$PATH:$HOME/bin
$ python setup.py install --prefix=$HOME

You may also add the export lines to your ~/.bashrc so that it is automatically set when you enter your shell.

Python egg

You may also create a Python egg. If you don't know what this is, you don't need to know.

$ python setup.py bdist_egg