Installing Excentury¶
Before we can get started adapting our C++ code to our favorite scripting language we must have a C++ compiler installed and a copy of Excentury. First we start with the installation of Excentury. There is more than one way to do this.
The Easy Way¶
The easiest way to install Excentury is to use pip. If you wish to perform a global installation and you have admin rights then do
sudo pip install excentury
or to install in some directory under your user account
pip install --user excentury
Installing on *nix Systems¶
From the command line do the following (where x.y is the version number):
wget https://pypi.python.org/packages/source/e/excentury/excentury-x.y.tar.gz
tar xvzf excentury-x.y.tar.gz
cd excentury-x.y/
sudo python setup.py install
The last command can be replaced by python setup.py install --user. See PyPI for all available versions.
Excentury executable¶
To be able to call excentury from the command line you must have the executable directory in your $PATH. This can be taken care of my calling the install command in excentury. Since the executable is not yet available you will have to call the excentury script from python.
python -m excentury install
This will print several messages describing some paths. To verify that excentury is now in your path you can try the help option
excentury -h
The install command also takes care of the C and C++ include paths. This will make sure that you can access the C++ libraries as well as the MATLAB libraries.