lesgourg / class_public

Public repository of the Cosmic Linear Anisotropy Solving System (master for the most recent version of the standard code; GW_CLASS to include Cosmic Gravitational Wave Background anisotropies; classnet branch for acceleration with neutral networks; ExoCLASS branch for exotic energy injection; class_matter branch for FFTlog)
230 stars 285 forks source link

make classy pip-installable #353

Closed ntessore closed 4 years ago

ntessore commented 4 years ago

This contains a number of changes to setup.py to make classy easily installable via pip.

In particular, these changes will make it possible to pip-install classy straight from the command line:

$ pip install git+https://github.com/lesgourg/class_public.git#egg=classy
$ # alternatively without OpenMP, e.g. on macOS with default clang:
$ OMPFLAG= pip install git+https://github.com/lesgourg/class_public.git#egg=classy

You can already test this using my fork:

$ pip install git+https://github.com/ntessore/class_public.git#egg=classy
ntessore commented 4 years ago

There were a couple of issues with this PR. In the end it was easier to build a setup.py outside of the CLASS repository. The pip-installable package that we use as a requirement when testing our code can be found here.