diff options
author | Jack Lloyd <[email protected]> | 2019-08-16 19:22:33 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-08-16 19:22:33 -0400 |
commit | 681a72e0bfc3066aa4a04789b698e2715b58d08b (patch) | |
tree | e1d9ee82e81efb009a9e3ee6801e4f4ca3ac7de5 /configure.py | |
parent | 49d67c47fcc86dcdcba83105511ee346c36c8fbb (diff) |
Add option to disable installing the Python module
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.py b/configure.py index d6f0ac495..8fe2a1aaa 100755 --- a/configure.py +++ b/configure.py @@ -449,6 +449,9 @@ def process_command_line(args): # pylint: disable=too-many-locals,too-many-state build_group.add_option('--no-store-vc-rev', action='store_true', default=False, help=optparse.SUPPRESS_HELP) + build_group.add_option('--no-install-python-module', action='store_true', default=False, + help='skip installing Python module') + build_group.add_option('--with-python-versions', dest='python_version', metavar='N.M', default='%d.%d' % (sys.version_info[0], sys.version_info[1]), @@ -2024,6 +2027,7 @@ def create_template_vars(source_paths, build_paths, options, modules, cc, arch, 'python_exe': os.path.basename(sys.executable), 'python_version': options.python_version, + 'install_python_module': not options.no_install_python_module, 'cxx': (options.compiler_binary or cc.binary_name), 'cxx_abi_flags': cc.mach_abi_link_flags(options), |