Building

Requirements

Only strict requirements are:

  • numpy

  • scipy

Extra requirements are:

pip

To install cosmoprimo, simply run:

python -m pip install git+https://github.com/cosmodesi/cosmoprimo

If you want to install extra requirements as well (pyclass, CAMB, astropy, pyfftw), run:

python -m pip install git+https://github.com/cosmodesi/cosmoprimo#egg=cosmoprimo[class,camb,astropy,extras]

pyclass can be installed independently through:

python -m pip install git+https://github.com/adematti/pyclass

pyclass with Mac OS

Boltzmann code CLASS will be compiled at installation time.

If you wish to use clang compiler (instead of gcc), you may encounter an error related to -fopenmp flag. In this case, you can try to export:

export CC=clang

Before installing pyclass. This will set clang OpenMP flags for compilation (see https://github.com/lesgourg/class_public/issues/405). Note that with Mac OS “gcc” may sometimes point to clang.