setup.py: fix version detection for tarball
- don't do version detection if there's no .hg directory
- shrink try: clause
- don't write __version__.py if version is unknown
(we might overwrite the real version)
Added signature for changeset
11efa41037e2
Added tag 1.2 for changeset
11efa41037e2