diff options
author | Chris Johns <chrisj@rtems.org> | 2016-03-07 11:56:02 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-03-07 13:16:17 +1100 |
commit | f88fcf3ae04f366d1f1faaa4f567c43627d063d2 (patch) | |
tree | 85625ff5ad44270dedf56b9909b51ef2958aff2d /source-builder/sb/pkgconfig.py | |
parent | sb: Remove http query flags from the file name if present. (diff) | |
download | rtems-source-builder-f88fcf3ae04f366d1f1faaa4f567c43627d063d2.tar.bz2 |
sb: Update code base to support Python3 and Python2.
Fix Windows support to allow MSYS2 Python to be used.
Updates #2619.
Diffstat (limited to 'source-builder/sb/pkgconfig.py')
-rwxr-xr-x | source-builder/sb/pkgconfig.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source-builder/sb/pkgconfig.py b/source-builder/sb/pkgconfig.py index 0a9c87d..c7cbbab 100755 --- a/source-builder/sb/pkgconfig.py +++ b/source-builder/sb/pkgconfig.py @@ -1,7 +1,7 @@ #! /usr/bin/env python # # RTEMS Tools Project (http://www.rtems.org/) -# Copyright 2014 Chris Johns (chrisj@rtems.org) +# Copyright 2014-2016 Chris Johns (chrisj@rtems.org) # All rights reserved. # # This file is part of the RTEMS Tools package in 'rtems-tools'. @@ -34,6 +34,8 @@ # provided by the full pkg-config so packages can configure and build. # +from __future__ import print_function + import copy import os import os.path @@ -196,7 +198,7 @@ class package(object): @staticmethod def dump_loaded(): for n in sorted(package.loaded): - print package.loaded[n]._str() + print(package.loaded[n]._str()) def __init__(self, name = None, prefix = None, libs_scan = False, output = None, src = None): @@ -458,7 +460,7 @@ class package(object): lhs = l[:d].lower() rhs = l[d + 1:] if tm: - print('define: ' + str(define) + ', lhs: ' + lhs + ', ' + rhs) + print(('define: ' + str(define) + ', lhs: ' + lhs + ', ' + rhs)) if define: self.defines[lhs] = rhs else: |