Here are the steps needed to install Warp using Anaconda version 5 or higher. These are the versions that can include a full compiler toolset. It is recommended to use a version with Python3.
Forthon provides the glue linking Fortran and python. It must be installed first before Warp can be built. It can be installed using pip:
The appropriate C and Fortran compiler needs to be installed. Details can be found here at the Anaconda website. Install the compilers for your architecture.
In order to use the compilers, they must be activated, for example:
This sets up the environment in the shell, for example setting the appropriate execute path. The compilation must be done in this activated shell.
Download Warp from bitbucket, https://bitbucket.org/berkeleylab/warp/downloads. Download and extract the tar ball from the most recent release (not the "Download repository" link). Update it by cd-ing into the warp directory and running git.
Warp needs to be configured to use the Anaconda compilers. Go into the warp/pywarp90 directory and create the file Makefile.local3 and add the following lines
Replace the fcompexec argument with the appropriate name of the gfortran compiler for your system. You can find the name listed in the bin directory of the anaconda distribution. (Don't forget that if you upgrade your system, this name will need to be updated also.)
Serial Warp can now be compiled and installed.
To use parallel Warp, the mpi4py package needs to be installed. I recommend using the conda forge version (which has more versions available).
As with the serial version, the appropriate compiler must be specified. Add the following lines to the file Makefile.local3.pympi
Then build and install it.
For additional packages, such as pygist, refer to the main installation page.