[Reproducible-builds] [dh-python] 94/183: pybuild: pass Interpreter instance to {interpreter}

Jérémy Bobbio lunar at moszumanska.debian.org
Fri Sep 19 15:30:24 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 5ecb358100f62b0104bc386e810b354815148159
Author: Piotr Ożarowski <piotr at debian.org>
Date:   Wed Aug 28 23:41:44 2013 +0200

    pybuild: pass Interpreter instance to {interpreter}
    
    possible use cases:
    * {interpreter.default_version} will return '3.3' for Interpreter('python3')
    * {interpreter.binay_dv} will return '/usr/bin/python3' for Interperter('python3.3')
---
 pybuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pybuild b/pybuild
index 5e77c45..e11982a 100755
--- a/pybuild
+++ b/pybuild
@@ -35,6 +35,7 @@ def main(cfg):
     log.debug('cfg: %s', cfg)
     from dhpython import build
     from dhpython.version import Version, get_requested_versions
+    from dhpython.interpreter import Interpreter
     from dhpython.tools import execute, move_matching_files
 
     if cfg.list_systems:
@@ -125,7 +126,7 @@ def main(cfg):
                                default=join(home_dir, 'build'))
         args = dict(context['args'])
         args.update({
-            'interpreter': i,
+            'interpreter': Interpreter(i),
             'args': get_option("%s_args" % step, interpreter, version, ''),
             'dir': context['dir'].format(version=version, interpreter=i),
             'destdir': (join(context['dir'], context['destdir'])).format(

-- 
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