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:
- python version 3.4.0 or superior
- tkinter (should be included in python installation)
- pip for python3 (should be included in python installation)
- pymongo version 2.7.1 or superior
- psutil version 2.1.1 or superior
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:
- download and install python 3.4.1 (64 bit version). Make sure to enable “Add python.exe to Path”
- download and install pymongo
- 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:
Use the OS you plan to build the application for.
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.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.