Compiler (Unix[-Like] Platforms)

Linux users, in addition to installing gcc (and possibly
gcc-c++), you might also need to install the development package for
your version of Python. If the build complains that Python.h is missing,
you need to install a package called something like python-dev.

If you're not on OS X, you might want to consider installing an
optimized linear algebra library
before building, although this is not essential and will complicate the build.
OS X already has such a library
installed, and PyGamma can take advantage of it.

Compiler (Windows)

PyGamma is known to build with MSVC 2008. Note that under Windows, Python
extensions like PyGamma must be compiled with the same compiler as was used
to compile Python. MSVC 2008 is used to build Python 2.7.

How To Build on Unix[-Like] Platforms (OS X, Linux, etc.)

Once you have the prerequisites installed, go to a command line and then
change to the gamma/platforms directory. Once there, change into the
subdirectory appropriate for your platform. Then, execute this command --

make pysgdist

That will build PyGamma and place the relevant build output files in a place
where setup.py can find them. When this process completes, you're ready to
install PyGamma as explained below.

How To Build on Windows

Open file gamma/platforms/msvc2008e/dynamic/gamma.sln in Visual Studio.

Ensure that python.exe is in your PATH.

Either ensure that swig.exe is in your PATH, or edit the build properties
to supply an explicit path to swig.exe on your machine.

If you opt for the
latter, open the Visual Studio Project-->Properties menu.
Then select Configuration Properties --> Build Events --> Pre-Build Events
and then edit the Command Line property. Change "swig" to an explicit
path. The result will look something like this:

Once PyGamma is installed, you can run an automated test under any Unix-like
operating system from the command line. Change directory to gamma/platforms
and then move into the appropriate platform (Linux, OSX, etc.). From there,
execute make pytest.

This runs the tests in gamma/src/pyTest. You can also run the .py files
there manually.

Under Windows, you can run the automated tests from within Visual Studio.
Right click on the pytest project and build it to run all the tests in the
gamma/trunk/src/pyTests directory.