The first thing you need to do is uninstall your distro version of calibre, which will be too old to run current development code.
Install the calibre binary from the calibre website,
http://calibre-ebook.com/download_linux then try to setup the development environment.