OSX Source Install¶
Preparing OSX¶
Install Command Line Tools:
xcode-select --install
Install the Homebrew package manager:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)
Install libraries with brew:
brew install python openssl cmake homebrew/science/hdf5 libjpeg pkg-config freetype libpng cartr/qt4/qt cartr/qt4/pyside cartr/qt4/shiboken
General source install¶
Clone the Xi-cam repository and enter it:
git clone https://github.com/ronpandolfi/Xi-cam.git && cd Xi-cam
Install the virtualenv python package:
pip install virtualenv
Create a virtual environment and activate it:
virtualenv venv --system-site-packages && source venv/bin/activate
Upgrade pip:
pip install --upgrade pip
Install numpy:
pip install --ignore-installed numpy
Install Xi-cam:
pip install .
NOTES¶
- Do not create the virtual environment using PyCharm; this will use an internal python resulting in broken links to the global site-packages.
- Do not use the Pycharm terminal console; this console runs a unique shell which is missing path variables, resulting in failed installations of PySide etc.