Installing pyfof

I recently tried to install the pyfof library. It’s pip installable so should be pretty trivial. But, no.

First off I got a message saying I needed to upgrade to the latest pip. Weird, because I already have the latest pip. I ran an upgrade anyway, just in case.

pip install --upgrade pip

Then I discovered that it couldn’t find my boost library, so I had to create a file called .pydistutils.py in my home directory and add this to it:

[build_ext]
include_dirs=/opt/local/include/

Then it worked:

pip install pyfof

To be fair all this advice is also on the pyfof package index page.