Installation

Dependencies

pyrost has the following mandatory runtime dependencies:

  • Python 3.6 or later (Python 2.x is not supported).

  • GNU Scientific Library 2.4 or later, which is used for numerical integration and pseudo-random number generation.

  • LLVM’s OpenMP library 10.0.0 or later, which is used for parallelization.

  • h5py 2.10.0 or later, which is used to work with CXI files.

  • NumPy 1.19.0 or later.

  • SciPy 1.5.2 or later.

Packages

pyrost packages are available through pypi and conda on OS X and Linux platforms.

conda

pyrost binary distribution is available via the conda package manager for Linux and OSX (Windows is not supported)in conda-forge channel. In order to install pyrost via conda, you just need to add conda-forge to the channels, and install as following:

$ conda config --add channels conda-forge
$ conda config --set channel_priority strict
$ conda install pyrost

The conda packages for pyrost are regularly updated when a new version is released.

pip

pyrost source distribution is available via the pip package installer. Installation is pretty straightforward:

$ pip install pyrost

If you want to install pyrost for a single user instead of system-wide, you can do:

$ pip install --user pyrost

Installation from source

In order to install pyrost from source you will need:

  • a C++ compiler (gcc or clang will do).

  • Python 3.6 or later (Python 2.x is not supported).

  • GNU Scientific Library 2.4 or later, which is used for numerical integration and pseudo-random number generation.

  • LLVM’s OpenMP library 10.0.0 or later, which is used for parallelization.

  • Cython 0.29 or later.

  • NumPy 1.19.0 or later.

After installing the dependencies, you can download the the source code from the GitHub pyrost repository page. Or you can download the last version of pyrost repository with git:

$ git clone https://github.com/simply-nicky/pyrost.git

After downloading the pyrost’s source code, cd into the repository root folder and build the C++ libraries using setuputils:

$ cd pyrost
$ python setup.py install

OR

$ pip install -r requirements.txt -e . -v

Getting help

If you run into troubles installing pyrost, please do not hesitate to contact me either through my mail or by opening an issue report on github.