setup.py: Generate builtin_version.py in git only
commit950a41bfc3514cf9feda82faa6e7e3d6889bb9de
authorDavid Aguilar <davvid@gmail.com>
Wed, 14 Oct 2009 11:58:29 +0000 (14 04:58 -0700)
committerDavid Aguilar <davvid@gmail.com>
Wed, 14 Oct 2009 11:58:29 +0000 (14 04:58 -0700)
tree0b8752ffd5f70363c7bb2c0e238096507f6040aa
parent2b7b1bfd2c4ce74c93ef39cd5c56c0d8f66d63c2
setup.py: Generate builtin_version.py in git only

The build system always removed builtin_version.py.
When distributing tarballs, though, we don't have .git
and thus can't generate this file during the build.

This changes things so that the builtin_version.py
module is only generated and deleted when inside
of a git repository.

Signed-off-by: David Aguilar <davvid@gmail.com>
setup.py