Though I’m mainly using VIM as my full-functionality editor for daily works. Sometime I just want to try something else. Somewhat like ar… A Integrated Development Environment?

I have to admit Eclipse is a great IDE for developing Java / PHP (you use cracked Zend Studio?) and with a plugin called Aptana we can also write Ruby / Python stuff with it. But I don’t like java much.

So that’s why a IDE for Python called NINJA-IDE caught my eyes, especially itself written in Python. We can find it here and here. NINJA-IDE is built from python and Qt for GUI. so make sure you have PyQt (at least version 4) runtime on your system.

If you are using the python within homebrew, you can just open and key the following command and waiting for things’ done :)

brew install -v sip
brew install -v pyqt

For me, I’m using Mac OS X Lion so I choose not to screw the native python environment up. You can use pythonbrew.

And one thing must be pay attention. Sip and PyQt4 don’t use the standard setuptools to install. We have to download the latest source code and build ourself. They also require python to be built in framework mode. If you are running on Linux or not the same as me, I suggest you refer to your system’s manual or google for about how to build these things.

So let’s get started :)

all the stuff we will need can be found as:

First, make sure the python has been built for framework mode.

# is supposed to be something like:

about how to build python for Macosx/Darwin framework

# use pythonbrew
# add `--framework`
# `--universal` for build 32bit / 64 bit for intel CPUs
# `-n` for
pythonbrew install --framework --universal -n 2.7.2

building Sip and PyQt4 is similar

# cd into source folder
# `-n` for universal binary
python --arch=x86_64 -n

# then `make` and `make install`
make && make install

# building PyQt4 is identical

Check whether the installation is successful. If don’t get any error, congratulations!

python -c 'import sip'
python -c 'import PyQt4'

Now we can start NINJA-IDE by hitting for following command in source code folder.


OK… the interface is not so awesome as their website.. but guess I will have a try with it :D