aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-07-20 16:27:56 +0000
committerlloyd <[email protected]>2010-07-20 16:27:56 +0000
commitb46aab7e0eeb16f116fdea19727a22bf60a45748 (patch)
tree9d054eba6346573b25e7399a0442d0fa491aed3e /configure.py
parente51e9aa6a6033710920f0934178ef770fd25498f (diff)
Move options for wrappers into their own group. Add an option
--use-python-version which allows the user to specify the major/minor versions of the python version they want to use. Defaults to the version that we are currently running under.
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py28
1 files changed, 18 insertions, 10 deletions
diff --git a/configure.py b/configure.py
index 24938c681..bdf960c95 100755
--- a/configure.py
+++ b/configure.py
@@ -197,15 +197,6 @@ def process_command_line(args):
build_group.add_option('--disable-debug', dest='debug_build',
action='store_false', help=SUPPRESS_HELP)
- build_group.add_option('--with-boost-python', dest='boost_python',
- default=False, action='store_true',
- help='enable Boost.Python wrapper')
-
- build_group.add_option('--without-boost-python',
- dest='boost_python',
- action='store_false',
- help=SUPPRESS_HELP)
-
build_group.add_option('--gen-amalgamation', dest='gen_amalgamation',
default=False, action='store_true',
help='generate amalgamation files')
@@ -233,6 +224,22 @@ def process_command_line(args):
action='store_true', default=False,
help=SUPPRESS_HELP)
+ wrapper_group = OptionGroup(parser, 'Wrapper options')
+
+ wrapper_group.add_option('--with-boost-python', dest='boost_python',
+ default=False, action='store_true',
+ help='enable Boost.Python wrapper')
+
+ wrapper_group.add_option('--without-boost-python',
+ dest='boost_python',
+ action='store_false',
+ help=SUPPRESS_HELP)
+
+ wrapper_group.add_option('--use-python-version', dest='python_version',
+ metavar='N.M',
+ default='.'.join(map(str, sys.version_info[0:2])),
+ help='specify version of Python to build against (eg %default)')
+
mods_group = OptionGroup(parser, 'Module selection')
mods_group.add_option('--enable-modules', dest='enabled_modules',
@@ -274,6 +281,7 @@ def process_command_line(args):
parser.add_option_group(target_group)
parser.add_option_group(build_group)
parser.add_option_group(mods_group)
+ parser.add_option_group(wrapper_group)
parser.add_option_group(install_group)
# These exist only for autoconf compatability (requested by zw for mtn)
@@ -1030,7 +1038,7 @@ def create_template_vars(build_config, options, modules, cc, arch, osinfo):
'mod_list': '\n'.join(sorted([m.basename for m in modules])),
- 'python_version': '.'.join(map(str, sys.version_info[0:2]))
+ 'python_version': options.python_version
}
"""