[Python-modules-commits] [pywavelets] 01/03: Don't rewrite git revision during build

Daniele Tricoli eriol-guest at moszumanska.debian.org
Wed Nov 4 20:42:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

eriol-guest pushed a commit to branch master
in repository pywavelets.

commit a3f05a1086c7b196793009c650fc20254b011d9e
Author: Daniele Tricoli <eriol at mornie.org>
Date:   Wed Nov 4 19:39:08 2015 +0100

    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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pywavelets.git



More information about the Python-modules-commits mailing list