<commit_before>Savanna Installation Guide
==========================

We recommend installing Savanna into virtual environment. That guaranties that if you already
have some python packages installed with OS package manager, Savanna installation will not
mess with them. Still, installing Savanna into system makes sense if that system is dedicated to
Savanna.

Further steps describe Savanna installation into virtual environment. All steps except
#1 do not require superuser privileges.

One of the :doc:`Savanna features <features>`, Anti-Affinity, requires a Nova adjustment.
See :doc:`anti_affinity` for details. But that is purely optional.


1. First you need to install `python-setuptools`, `python-virtualenv` and python headers using your
   OS package manager. The python headers package name depends on OS. For Ubuntu it is `python-dev`,
   for Red Hat - `python-devel`. So for Ubuntu run:

.. sourcecode:: console

    $ sudo apt-get install python-setuptools python-virtualenv python-dev
..

   For Fedora:

.. sourcecode:: console

    $ sudo yum install gcc python-setuptools python-virtualenv python-devel
..

   For CentOS:

.. sourcecode:: console

    $ sudo yum install gcc python-setuptools python-devel
    $ sudo easy_install pip
    $ sudo install virtualenv

2. Setup virtual environment for Savanna:

.. sourcecode:: console

    $ virtualenv savanna-venv

3. You can install the latest Savanna release version from pypi:

.. sourcecode:: console

    $ savanna-venv/bin/pip install savanna
..

   Or you can get Savanna archive from `<http://tarballs.openstack.org/savanna/>`_ and install it using pip:

.. sourcecode:: console

    $ savanna-venv/bin/pip install 'http://tarballs.openstack.org/savanna/savanna-master.tar.gz#egg=savanna'
..
<commit_msg>Minor addition to installation guide<commit_after>Savanna Installation Guide
==========================

We recommend installing Savanna into virtual environment. That guaranties that if you already
have some python packages installed with OS package manager, Savanna installation will not
mess with them. Still, installing Savanna into system makes sense if that system is dedicated to
Savanna.

Further steps describe Savanna installation into virtual environment. All steps except
#1 do not require superuser privileges.

One of the :doc:`Savanna features <features>`, Anti-Affinity, requires a Nova adjustment.
See :doc:`anti_affinity` for details. But that is purely optional.


1. First you need to install `python-setuptools`, `python-virtualenv` and python headers using your
   OS package manager. The python headers package name depends on OS. For Ubuntu it is `python-dev`,
   for Red Hat - `python-devel`. So for Ubuntu run:

.. sourcecode:: console

    $ sudo apt-get install python-setuptools python-virtualenv python-dev
..

   For Fedora:

.. sourcecode:: console

    $ sudo yum install gcc python-setuptools python-virtualenv python-devel
..

   For CentOS:

.. sourcecode:: console

    $ sudo yum install gcc python-setuptools python-devel
    $ sudo easy_install pip
    $ sudo install virtualenv

2. Setup virtual environment for Savanna:

.. sourcecode:: console

    $ virtualenv savanna-venv
..

   This will install python virtual environment into ``savanna-venv`` directory
   in your current working directory. This command does not require super
   user privileges and could be executed in any directory current user has
   write permission.

3. You can install the latest Savanna release version from pypi:

.. sourcecode:: console

    $ savanna-venv/bin/pip install savanna
..

   Or you can get Savanna archive from `<http://tarballs.openstack.org/savanna/>`_ and install it using pip:

.. sourcecode:: console

    $ savanna-venv/bin/pip install 'http://tarballs.openstack.org/savanna/savanna-master.tar.gz#egg=savanna'
..

{'fraction_non_alphanumeric': 0.08622036988799167, 'fraction_numerical': 0.002083876009377442, 'mean_word_length': 3.948453608247423, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7647267', 'n_tokens_mistral': 1101, 'n_tokens_neox': 995, 'n_words': 436}