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

Daniele Tricoli eriol-guest at moszumanska.debian.org
Tue Dec 13 00:21:20 UTC 2016


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

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

commit d7710cd5df96dc1bfd985e9638ae0a8c938ea0de
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 de6b661..b50e3e7 100755
--- a/setup.py
+++ b/setup.py
@@ -61,9 +61,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