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

Daniele Tricoli eriol-guest at moszumanska.debian.org
Tue Mar 14 23:30:52 UTC 2017


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

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

commit 060c0e5ad6d9626e9b7e2eadc47fecbe68ecc54f
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 d99dd8b..fa3eced 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