Difference between revisions of "Quality control framework/Installation"

From Apertium
Jump to navigation Jump to search
(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…')
 
Line 1: Line 1:
= Downloading =
The repo isn't on the Apertium SVN yet. In the meantime:

== Using git ==
If you have git, you can clone the repository like so:
<pre>
$ git clone git://github.com/bbqsrc/apertiumqa.git
</pre>

== Tarball ==
If you don't have git (or don't want it), you can just download the tarball like so:
<pre>
$ wget --no-check-certificate https://github.com/bbqsrc/apertiumqa/tarball/master
$ tar xf bbqsrc-apertiumqa-XXXXXXX.tar.gz
</pre>

= Installation =
== As root ==
== As root ==
To install traditionally to the Python library directory on your system:
To install traditionally to the Python library directory on your system:

Revision as of 04:07, 8 May 2011

Downloading

The repo isn't on the Apertium SVN yet. In the meantime:

Using git

If you have git, you can clone the repository like so:

$ git clone git://github.com/bbqsrc/apertiumqa.git

Tarball

If you don't have git (or don't want it), you can just download the tarball like so:

$ wget --no-check-certificate https://github.com/bbqsrc/apertiumqa/tarball/master
$ tar xf bbqsrc-apertiumqa-XXXXXXX.tar.gz

Installation

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