For one of my current projects, I need to send compiled sketches to an arduino without using the Arduino IDE UI. Luckily, there is a project called ino for handling this via command-line.
To install ino on my machine, which is running OS X, I first downloaded the latest source tarball.
After unarchiving it, I navigated to the directory in terminal
$ cd ~/Downloads/ino-0.3.6
and ran the following command
$ sudo python setup.py install
It was able to find and download all the dependancies and installed without any trouble.