Difference between revisions of "Quality control framework/Installation"
Line 30: | Line 30: | ||
== Rootless Environment == |
== Rootless Environment == |
||
To install in a rootless environment, you can create your own personal "system root". A sysroot at a minimum contains a <code>bin/</code> and <code>lib/</code> directory, so you may use your <code>$HOME</code> directory for this (and it will be used in this example.) To setup a root in your home: |
To install in a rootless environment, you can create your own personal "system root". A sysroot at a minimum contains a <code>bin/</code> and <code>lib/</code> directory, so you may use your <code>$HOME/local</code> directory for this (and it will be used in this example.) To setup a root in your home: |
||
<pre> |
<pre> |
||
Line 39: | Line 39: | ||
You may also add the export lines to your <code>~/.bashrc</code> so that it is automatically set when you enter your shell. |
You may also add the export lines to your <code>~/.bashrc</code> so that it is automatically set when you enter your shell. |
||
:This doesn't work - [[User:Francis Tyers|Francis Tyers]] 10:26, 8 May 2011 (UTC) |
|||
== Python egg == |
== Python egg == |
Revision as of 10:26, 8 May 2011
Contents
Downloading
The Apertium SVN module is copied periodically from the git repository.
Using SVN
$ svn co https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-tools/apertium-quality
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 SVN (or don't want them), 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/local
directory for this (and it will be used in this example.) To setup a root in your home:
$ export PYTHONPATH=$HOME/local:$PYTHONPATH $ export PATH=$PATH:$HOME/local/bin $ python setup.py install --prefix=$HOME/local
You may also add the export lines to your ~/.bashrc
so that it is automatically set when you enter your shell.
- This doesn't work - Francis Tyers 10:26, 8 May 2011 (UTC)
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