Add setup.py

Original message: setup.py that can create a bdist for Ubuntu/CentOS or
an sdist (cherry picked from commit
1c592947ee0c4e13b06cd3fd8992f36fb906ea10) [Tal Yalon]

This patch is from https://bugs.freedesktop.org/show_bug.cgi?id=55439.
Patch file was garbled so this is a re-commit with whitespace fixed and
some other issues resolved.