Author: Jérôme Kieffer
Date: 29/01/2015
Keywords: Installation procedure on MacOSX
Target: System administrators
To install pyFAI on an Apple computer you will need a scientific Python stack. MacOSX provides by default Python2.7 with Numpy which is a good basis.
If you get an error about the local “UTF-8”, try to:
Before the installation
Get the sources from Github:
To build pyFAI from sources, a compiler is needed. Apple provides Xcode for free: https://developer.apple.com/xcode/
Another option is to use GCC which provides supports for multiprocessing via OpenMP (see below)
Optional build dependencies: Cython (>v0.17) is needed to translate the source files into C code. If Cython is present on your system, the source code will be re-generated and compiled.
There is an issue with MacOSX (v10.8 onwards) where the default compiler (Xcode 5 or 6) switched from gcc 4.2 to clang and dropped the support for OpenMP. This is why OpenMP is by default deactivated under MacOSX. If you have installed an OpenMP-able compiler like GCC, you can re-activate it using the flag –openmp for setup.py