From a3f05a1086c7b196793009c650fc20254b011d9e Mon Sep 17 00:00:00 2001
From: Daniele Tricoli <eriol@mornie.org>
Date: Wed, 4 Nov 2015 19:39:08 +0100
Subject: Don't rewrite git revision during build

Upstream uses git revision to report it inside version string. In Debian
we want to take it from source distribution to show same revision as upstream,
not Debian packaging repository revision.

Patch-Name: do_not_rewrite_git_revision_on_build.patch
---
 setup.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/setup.py b/setup.py
index 8e02b7f..7c6063d 100755
--- a/setup.py
+++ b/setup.py
@@ -44,9 +44,7 @@ def get_version_info():
     # write_version_py(), otherwise the import of pywt.version messes
     # up the build under Python 3.
     FULLVERSION = VERSION
-    if os.path.exists('.git'):
-        GIT_REVISION = git_version()
-    elif os.path.exists('pywt/version.py'):
+    if os.path.exists('pywt/version.py'):
         # must be a source distribution, use existing version file
         # load it as a separate module to not load pywt/__init__.py
         import imp
