[Reproducible-builds] [dh-python] 152/183: dh_pypy: add support for debian/package.pyremove files

Jérémy Bobbio lunar at moszumanska.debian.org
Fri Sep 19 15:30:32 UTC 2014


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

lunar pushed a commit to branch pu/reproducible_builds
in repository dh-python.

commit c3f9d754334a9202c959d99b3721f965e9d02abb
Author: Piotr Ożarowski <piotr at debian.org>
Date:   Fri Nov 22 13:02:44 2013 +0100

    dh_pypy: add support for debian/package.pyremove files
---
 debian/changelog |  2 +-
 dh_pypy          | 10 ++++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b70104b..cd4353c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
 dh-python (1.20131021-2) UNRELEASED; urgency=low
 
-  * dh_python3: add support for debian/package.pyremove files
+  * dh_python3, dh_pypy: add support for debian/package.pyremove files
 
  -- Piotr Ożarowski <piotr at debian.org>  Tue, 05 Nov 2013 22:57:20 +0100
 
diff --git a/dh_pypy b/dh_pypy
index e28148f..3d07789 100755
--- a/dh_pypy
+++ b/dh_pypy
@@ -35,6 +35,7 @@ from dhpython.version import supported, default, Version, VersionRange
 from dhpython.pydist import validate as validate_pydist
 from dhpython.fs import fix_locations, Scan
 from dhpython.option import Option
+from dhpython.tools import pyremove
 
 # initialize script
 logging.basicConfig(format='%(levelname).1s: dh_pypy '
@@ -144,6 +145,7 @@ def main():
 
     if options.verbose or os.environ.get('DH_VERBOSE') == '1':
         log.setLevel(logging.DEBUG)
+        log.debug('version: DEVELV')
         log.debug('argv: %s', sys.argv)
         log.debug('options: %s', options)
         log.debug('args: %s', args)
@@ -166,10 +168,14 @@ def main():
                 options.arch is True and pdetails['arch'] == 'all':
             continue
         log.debug('processing package %s...', package)
-        if package.endswith('-dbg'):
-            interpreter.debug = True
+        interpreter.debug = package.endswith('-dbg')
 
         if not private_dir:
+            try:
+                pyremove(interpreter, package, options.vrange)
+            except Exception as err:
+                log.error("%s.pyremove: %s", package, err)
+                exit(5)
             fix_locations(package, interpreter, SUPPORTED, options)
         stats = Scanner(interpreter, package, private_dir, options).result
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dh-python.git



More information about the Reproducible-builds mailing list