summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-05-22 21:46:56 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-05-22 21:50:27 -0400
commit449d62d81269edf674256298a32962c6ee580d60 (patch)
tree301b46514ce9a4eb92306ae2d0bcc56ec0d41d35 /acprep
parent37a3f27ef2897a0d2bf129126f45c4ab0b5000bd (diff)
downloadfork-ledger-449d62d81269edf674256298a32962c6ee580d60.tar.gz
fork-ledger-449d62d81269edf674256298a32962c6ee580d60.tar.bz2
fork-ledger-449d62d81269edf674256298a32962c6ee580d60.zip
acprep --no-python now disables Python support
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep6
1 files changed, 6 insertions, 0 deletions
diff --git a/acprep b/acprep
index 347b217a..3c5a631b 100755
--- a/acprep
+++ b/acprep
@@ -451,6 +451,9 @@ class PrepareBuild(CommandLineApp):
op.add_option('', '--no-git', action='store_true', dest='no_git',
default=False,
help='Do not call out to Git; useful for offline builds')
+ op.add_option('', '--no-python', action='store_true', dest='no_python',
+ default=False,
+ help='Do not enable Python support by default')
op.add_option('', '--output', metavar='DIR', action="callback",
callback=self.option_output,
help='Build in the specified directory')
@@ -474,6 +477,9 @@ class PrepareBuild(CommandLineApp):
help='Enable full warning flags')
def main(self, *args):
+ if self.options.no_python:
+ self.configure_args.remove('--enable-python')
+
if args and args[0] in ['default', 'debug', 'opt', 'gcov', 'gprof']:
self.current_flavor = args[0]
args = args[1:]