Version 16 (modified by m-doucet, 13 years ago) (diff) |
---|
Build Instructions for OSX
- Install python 2.6 from http://www.python.org/download/releases/
Building the SansView application on Mac requires you to install python from python.org. The version of python bundled with OSX will cause py2app to produce an application property list that will not point to the python executable bundled in the application.
- Run the deps.py script found at the top of the trunk branch in 32-bit mode:
arch -i386 python2.6 deps.py
Install wxPython 2.8
- Get wxPython 2.8 (not 2.9) from http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/wxPython2.8-osx-unicode-2.8.12.1-universal-py2.6.dmg/download
Install Matplotlib 1.1.0
- Get the matplotlib code from here: https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/
- Modify the make.osx file so that it has the correct OSX version at the top:
MACOSX_DEPLOYMENT_TARGET=10.7 OSX_SDK_VER=10.7
- Build and install matplotlib:
make -f make.osx PREFIX=$HOME/.local PYVERSION=2.6 fetch deps mpl_install
Install Scipy 0.10.0
- Get the scipy code from here: http://sourceforge.net/projects/scipy/files/scipy/0.10.0/scipy-0.10.0.tar.gz/download/
- Create this following symbolic link (might vary slightly):
cd /usr/local/lib; ln -sf /usr/lib/gcc/i686-apple-darwin11/4.2.1/libgcc.a libcc_dynamic.a
- Build and install scipy:
python2.6 setup.py install --user
Compile SansView
- Build and install SansView using the setup.py script at the top of the trunk branch.
python2.6 setup.py install --user
- The installation process will use easy-install to install lxml and periodictable.
- Run SansView with:
arch -i386 python2.6 sansview.py
Py2app extras
If you want to build a Mac application, you will need to install the following packages:
easy_install-2.6 altgraph==0.7.0 easy_install-2.6 modulegraph==0.8.1 easy_install-2.6 macholib==1.3 easy_install-2.6 py2app