diff options
author | Johann Klähn <kljohann@gmail.com> | 2013-01-30 23:37:37 +0100 |
---|---|---|
committer | Johann Klähn <kljohann@gmail.com> | 2013-01-30 23:38:11 +0100 |
commit | 20217e7c9c990039a264b94637bba6b2caffe885 (patch) | |
tree | db5244537c1544f829c1ed49d0f672ce9e4d61ab /acprep | |
parent | 9e3652dd4fc4bea3453b5b79f9a687501a63cb90 (diff) | |
download | fork-ledger-20217e7c9c990039a264b94637bba6b2caffe885.tar.gz fork-ledger-20217e7c9c990039a264b94637bba6b2caffe885.tar.bz2 fork-ledger-20217e7c9c990039a264b94637bba6b2caffe885.zip |
fix --no-python option
This would fail with `ValueError: list.remove(x): x not in list`.
Diffstat (limited to 'acprep')
-rwxr-xr-x | acprep | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -301,10 +301,9 @@ class PrepareBuild(CommandLineApp): help='Enable use of Doxygen to build ref manual ("make docs")') op.add_option('', '--python', action='store_true', dest='python', default=False, - help='Enable Python support (if disabled in acprep)') - op.add_option('', '--no-python', action='store_true', dest='no_python', - default=False, - help='Do not enable Python support by default') + help='Enable Python support') + op.add_option('', '--no-python', action='store_false', dest='python', + help='Disable python support (default)') op.add_option('', '--prefix', metavar='DIR', action="store", dest="prefix_dir", help='Use custom installation prefix') op.add_option('', '--products', metavar='DIR', action="store", @@ -684,8 +683,6 @@ class PrepareBuild(CommandLineApp): self.configure_args.append('-DUSE_DOXYGEN=1') if self.options.python: self.configure_args.append('-DUSE_PYTHON=1') - if self.options.no_python: - self.configure_args.remove('-DUSE_PYTHON=1') if self.options.use_ninja: self.configure_args.append('-GNinja') |