Skip to content

Commit

Permalink
Add --no-allmo option
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Dunn authored and RobinD42 committed Sep 4, 2019
1 parent 1fc8ba5 commit 8efd638
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions build.py
Expand Up @@ -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')
Expand Down Expand Up @@ -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:")
Expand Down Expand Up @@ -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.")



Expand Down

0 comments on commit 8efd638

Please sign in to comment.