Development

This section details how to use source code for developers. You can get latest code and binaries at: http://github.com/borisd13/GridCompute

Requirements

The following is required to use the source code:

Install requirements on Ubuntu

Enter below commands in prompt:

>>> sudo apt-get install python3-pip
>>> sudo pip3 install pymongo
>>> sudo pip3 install psutil
>>> sudo apt-get install python3-tk

Install requirements on Windows

Follow below instructions:

  1. download and install python 3.4.1 (64 bit version). Make sure to enable “Add python.exe to Path”
  2. download and install pymongo
  3. download and install psutil

Build application

GridCompute is meant to be run easily on computers that don’t have any python environment. This is achieved by creating binaries of the application with the help of cx_Freeze.

Note

Building the application is not required for executing the program.

To build the application:

  1. Use the OS you plan to build the application for.

  2. Install cx_Freeze from source.

    Warning

    On Ubuntu, you might need to apply fix for issue 32.
    On Windows, you may have to install Visual Studio C++ 2010.
  3. Go to the main folder of GridCompute source code and run python setup.py build.

    Warning

    On Ubuntu, you will also need to apply fix for issue 95.

Build documentation

Documentation is generated through the use of sphinx. To build documentation, you need to install following dependencies:

>>> pip3 install sphinx
>>> pip3 install sphinxcontrib-napoleon
>>> pip3 install sphinx-rtd-theme

You can then go to docs folder and run make html.

Execute application

From source, run python 3 on main.py.

From executable, run GridCompute executable.