Development Installation¶
This is a quick guide on how to install AvaFrame and the required dependencies on your machine. AvaFrame is developed on Linux machines (Ubuntu/Manjaro/Arch) with recent Python versions 3.8/3.9. These instructions assume you are familiar with working in a terminal. This guide is currently described for Linux only, but expert users should be able to adapt it to Windows.
Requirements¶
Install git and python, we suggest to work with miniconda/anaconda. For installation see miniconda or anaconda. Some operating systems might require the python headers (e.g python-dev on ubuntu) or other supporting libraries/packages (e.g. Visual Studio on Windows).
Setup AvaFrame¶
Create a new conda environment for AvaFrame, activate it and install pip in this environment:
conda create --name avaframe_env
conda activate avaframe_env
conda install pip numpy cython
Clone the AvaFrame repository (in a directory of your choice: [YOURDIR]) and change into it:
cd [YOURDIR]
git clone https://github.com/avaframe/AvaFrame.git
cd AvaFrame
Compile the cython com1DFA part. You might also have to install a c-compiler (gcc or similar) through your systems package manager:
python setup.py build_ext --inplace
Warning
You will have to do this compilation every time something changes in the cython code. We also suggest to do this everytime updates from the repositories are pulled.
Install avaframe and its requirements:
pip install -e .
This installs avaframe in editable mode, so every time you import avaframe the current (local) version will be used.
Test it by starting python
and do an import avaframe
. If no error comes
up, you are good to go.
Head over to Getting Started for the next steps.
Update AvaFrame¶
To update go to your avaframe repository [YOURDIR]/Avaframe, pull the latest changes via:
git pull
and repeat the compilation step from above:
python setup.py build_ext --inplace