aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-12-03 22:00:37 -0500
committerJack Lloyd <[email protected]>2018-12-03 22:00:37 -0500
commit92d6b2f014b5c33e1748a88d8a5f842e9eab504f (patch)
treebeed27fa7a1a0ce72ddd6753346c7030b7ccb868 /configure.py
parent10dd757c2b98e4239d7780b3620b5e39ed938ea3 (diff)
Fix a few small problems in configure
Lint warnings, etc
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/configure.py b/configure.py
index 4a708ecbe..a4f9ca062 100755
--- a/configure.py
+++ b/configure.py
@@ -146,12 +146,12 @@ class Version(object):
(stdout, stderr) = vc.communicate()
if vc.returncode != 0:
- logging.debug('Error getting rev from %s - %d (%s)'
- % (cmdname, vc.returncode, stderr))
+ logging.debug('Error getting rev from %s - %d (%s)',
+ cmdname, vc.returncode, stderr)
return 'unknown'
rev = str(stdout).strip()
- logging.debug('%s reported revision %s' % (cmdname, rev))
+ logging.debug('%s reported revision %s', cmdname, rev)
return '%s:%s' % (cmdname, rev)
except OSError as e:
@@ -2529,7 +2529,7 @@ class AmalgamationGenerator(object):
pub_header_amalag.write_to_file(header_name, "BOTAN_AMALGAMATION_H_")
isa_headers = {}
- internal_headers = []
+ internal_headers_list = []
def known_isa_header(hdr):
if self._options.single_amalgamation_file:
@@ -2543,9 +2543,9 @@ class AmalgamationGenerator(object):
if isa:
isa_headers[isa] = ''.join(AmalgamationGenerator.read_header(hdr))
else:
- internal_headers.append(hdr)
+ internal_headers_list.append(hdr)
- internal_headers = AmalgamationHeader(internal_headers)
+ internal_headers = AmalgamationHeader(internal_headers_list)
header_int_name = '%s_internal.h' % (AmalgamationGenerator.filename_prefix)
logging.info('Writing amalgamation header to %s' % (header_int_name))
internal_headers.write_to_file(header_int_name, "BOTAN_AMALGAMATION_INTERNAL_H_")
@@ -2820,10 +2820,10 @@ def canonicalize_options(options, info_os, info_arch):
shared_libs_supported = options.os in info_os and info_os[options.os].building_shared_supported()
if not shared_libs_supported:
- if options.build_shared_lib is not None:
+ if options.build_shared_lib is True:
logging.warning('Shared libs not supported on %s, disabling shared lib support' % (options.os))
options.build_shared_lib = False
- else:
+ elif options.build_shared_lib is None:
logging.info('Shared libs not supported on %s, disabling shared lib support' % (options.os))
if options.os == 'windows' and options.build_shared_lib is None and options.build_static_lib is None: