Nicolas Méloni
Maître de conférences en informatique, Université de Toulon

Configuration

To install SWAG you must first make sure that the following dependencies are met:

The easiest way to do so is to use pip: a package management system for Python softwares. If Python is installed on your system pip should come with it, otherwise run

$ sudo apt-get install python-pip

For Mac users, the command

$ sudo easy_install pip

should do the work.

For Windows users installing the latest version of Python should provide access to pip in PowerShell.

After that, simply run

$ sudo pip install markdown
$ sudo pip install Pygments

You might get the following error if your network uses a proxy

Cannot fetch index base URL https://pypi.python.org/simple/

One solution is to specify your proxy configuration in the pip command:

$ sudo pip --proxy=http://username:password@proxy.example.com:port/ 
install markdown

You are now ready to install SWAG.

Install

The easiest way to install SWAG is through git:

$ git clone git@plmlab.math.cnrs.fr:melon359/swag.git

After that, on Linux system, simply run the setup.py script and SWAG should be ready for usage.

On other systems you have to make sure that the SWAG directory is added to the PYTHONPATH enviromnent variable, which can be a tedious endeavour.