Up-to-date source code for sophia is bundled with the sophy source code, so the only thing you need to build is Cython. If Cython is not installed, then the pre-generated C source files will be used.

sophy can be installed directly from the source or from pypi using pip.

Installing with pip

To install from PyPI:

$ pip install cython  # optional
$ pip install sophy

To install the very latest version, you can install with git:

$ pip install -e git+

Obtaining the source code

The source code is hosted on github and can be obtained and installed:

$ git clone
$ cd sophy
$ python build
$ python install

Running the tests

Unit-tests and integration tests are distributed with the source and can be run from the root of the checkout:

$ python