Skip to content
Permalink
Browse files

Add --no-allmo option

  • Loading branch information...
Robin Dunn authored and RobinD42 committed Aug 7, 2019
1 parent 1fc8ba5 commit 8efd6385a1417da05d6d6138113ca22bc4a84406
Showing with 13 additions and 10 deletions.
  1. +13 −10 build.py
@@ -338,6 +338,7 @@ def setDevModeOptions(args):
#'--osx_carbon',
#'--mac_arch=i386',
#'--mac_arch=i386,x86_64',
'--no_allmo',
]
if not isWindows:
myDevModeOptions.append('--debug')
@@ -450,6 +451,7 @@ def makeOptionParser():
("docker_img", ("all", "Comma separated list of image tags to use for the build_docker command. Defaults to \"all\"")),
("dump_waf_log", (False, "If the waf build tool fails then using this option will cause waf's configure log to be printed")),
("regenerate_sysconfig", (False, "Waf uses Python's sysconfig and related tools to configure the build. In some cases that info can be incorrect, so this option regenerates it. Must have write access to Python's lib folder.")),
("no_allmo", (False, "Skip regenerating the wxWidgets message catalogs")),
]

parser = optparse.OptionParser("build options:")
@@ -1428,16 +1430,17 @@ def cmd_build_wx(options, args):
traceback.print_exc()
sys.exit(1)

# Build the wx message catalogs, but first check that there is a msgfmt
# command available
if findCmd('msgfmt') and findCmd('make'):
locale_pwd = pushDir(posixjoin(wxDir(), 'locale'))
print('Building message catalogs in ' + os.getcwd())
runcmd('make allmo')
del locale_pwd
else:
print("WARNING: msgfmt and/or make commands not found, message catalogs not \n"
" rebuilt. Please install gettext and associated tools.")
if not options.no_allmo:
# Build the wx message catalogs, but first check that there is a msgfmt
# command available
if findCmd('msgfmt') and findCmd('make'):
locale_pwd = pushDir(posixjoin(wxDir(), 'locale'))
print('Building message catalogs in ' + os.getcwd())
runcmd('make allmo')
del locale_pwd
else:
print("WARNING: msgfmt and/or make commands not found, message catalogs not \n"
" rebuilt. Please install gettext and associated tools.")



0 comments on commit 8efd638

Please sign in to comment.
You can’t perform that action at this time.