Step summary:
1. Install Qt4
2. Build and install sip
3. Build and install QScintilla2
4. Build and install PyQt4
5. Build and install QScintilla2 Python bindings
6. Install eric4 #option, i use the pycharm
1. sip sip-4.16.4.tar.gz http://www.riverbankcomputing.com/software/sip/download
python configure.py -d /Library/Python/2.7/site-packages # --arch=x86_64
make
sudo make install
2. QScintilla2 QScintilla-gpl-2.8.4.tar.gz http://www.riverbankcomputing.com/software/qscintilla/download
cd QScintilla*;cd Qt4Qt5
qmake qscintilla.pro -spec macx-g++
make
sudo make install
3. PyQt4 PyQt-mac-gpl-4.11.3.tar.gz http://sourceforge.net/projects/pyqt/files/PyQt4/
python configure-ng.py -a -d /Library/Python/2.7/site-packages/ --sip /System/Library/Frameworks/Python.framework/Versions/2.7/bin/sip
make
sudo make install
4. QScintilla2 Python bindings
cd ../Python
python configure.py --sip /System/Library/Frameworks/Python.framework/Versions/2.7/bin/sip
make
sudo make install
#/System/Library/Frameworks/Python.framework/Versions/2.7/share/sip/PyQt4/Qsci/