The following is a set of instruction, [half] borrowed from here.
But it didn't work for me and I had to modify it.
Finally I installed it the linux way, with modified addresses of directories for OSX.
Then created a symbolic object and linked to the installed opencv
The opencv installation instruction is from here, with following options modified:
PYTHON_LIBRARY=/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.dylib \
PYTHON_INCLUDE_DIR=/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Headers/ \
PYTHON_EXECUTABLE=/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python \
PYTHON2_NUMPY_INCLUDE_DIRS=/usr/local/Cellar/numpy/1.13.1/lib/python2.7/site-packages/numpy/core/include/ \