vBlog

vBlog

Useful tips and snippets

19 Aug 2013

Building ZSH with zpython module on MacOS X

There is a fork of ZSH that has a Python module. It is able to run Powerline smoothly.

However, on MacOS X, it doesn’t correctly detect the Python libs upon compilation. There seems to be a similar problem for Vim with python support: http://stackoverflow.com/questions/6490513/vim-failing-to-compile-with-python-on-os-x

The workaround is the same. Editing the Makefile in the config directory of the Python installation fixes this. The modification is PYTHONFRAMEWORKINSTALLDIR instead of PYTHONFRAMEWORKDIR on the line beginning with LINKFORSHARED