Skip to content

Latest commit

 

History

History
45 lines (40 loc) · 1.5 KB

File metadata and controls

45 lines (40 loc) · 1.5 KB

Development Setup for the MRT tools

You cat setup the MRT tools in a virtual environment. This way, it won't conflict with your system wide installation and you can easily test your modifications to the code base.

Requirements

Install the virtualenvwrapper for easier handling of virtual environments and other deps

sudo apt-get install virtualenvwrapper libffi-dev libkrb5-dev
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh # Can be put into bashrc

Creating the virtualenv and installation

First, create a new virtual environment

mkvirtualenv mrt --system-site-packages

You will see a (mrt) at the beginning of your prompt, indicating that you are working in your virtualenv. You can deactivate it with deactivate. To work in this environment again use the command workon mrt.

Setup the mrt_tools package

python setup.py install

You will now be able to use the development version, whenever your virtualenv is activated. If you want to permanently use them, you can create a link to the executable and extend your path (the export command should go into your .bashrc):

mkdir -p  ~/.local/bin
ln -s ~/.virtualenvs/mrt/bin/mrt ~/.local/bin/mrt
export PATH=~/.local/bin:$PATH

Updating

When you want to update your MRT tools, follow these steps in the build repo:

git pull
workon mrt
pip uninstall mrt
python setup.py install

Deinstallation / start from scratch

Simply remove the virtual environment:

deactivate
rmvirtualenv mrt