Python API with Anaconda
This is just a comment with regards to the Python API and its use with Anaconda environment. With Anaconda, it seems setting "PYTHONPATH" is not the advised method. Therefore, the instructions in the README (linked above) need a bit of modification.
I found this to work:
Put the modules into into site-packages, i.e. the directory $HOME/path/to/anaconda/lib/pythonX.X/site-packages which is always on sys.path. This should also work by creating a symbolic link.
So after I cloned the gmsh repository and compiled the code (with necessary cmake options), I issued the following command (linux)
ln -s /path/to/installed/gmsh/lib/gmsh.py $HOME/path/to/anaconda/lib/pythonX.X/site-packages/gmsh.py
where of course you fill in the correct locations. I was then able to start Spyder (Anaconda python IDE) and issue
import gmsh
without any issues. I then tested some the GMSH tutorials for the Python API and everything seemed to work.
Overall, I'm not sure if what I did is best practice. I just thought I would share in case others who use Anaconda want to include the gmsh.py API in their environment.
Also, I should point out that you can also do something like this (not tested)
Alternatively, if you only want to link to a particular conda environment then add the symbolic link to $HOME/path/to/anaconda/envs/{NAME_OF_ENVIRONMENT}/lib/pythonX.X/site-packages
if you want to add gmsh.py to a specific Anaconda environment only.