Version 3 (modified by flip, 3 years ago) (diff)


How To Build PyGamma Wheels for OS X

This document describes how to build PyGamma wheels for OS X.


As of this writing (March 2016), we have created our last 32-bit PyGamma. This document assumes you are building a 64-bit PyGamma.


  1. Install XCode to get the OS X build toolchain.
  2. Ensure a modern 64-bit Python is in your path.
  3. pip install wheel

Build PyGamma

  1. Get the GAMMA source code via SVN.
  2. cd gamma/platforms/OSX
  3. make pysgdist
  4. cd ../../pygamma
  5. python bdist_wheel

The wheel file will be in the dist directory.

Note that the OS X Makefile and PyGamma's contain some special code to ensure the PyGamma wheel automatically gets the correct name.