Author: johannes Date: 2007-12-07 09:00:56 -0600 (Fri, 07 Dec 2007) New Revision: 9844
Modified: trunk/gnue-common/src/utils/setup.py Log: No translation stuff in build command Modified: trunk/gnue-common/src/utils/setup.py =================================================================== --- trunk/gnue-common/src/utils/setup.py 2007-12-07 14:57:58 UTC (rev 9843) +++ trunk/gnue-common/src/utils/setup.py 2007-12-07 15:00:56 UTC (rev 9844) @@ -398,69 +398,6 @@ Build all files if called from SVN """ - if os.name == 'posix': - - # First check if we have everything installed we need to build the - # distribution - - if os.path.isdir('po'): - # xgettext - if os.system("pygettext --version > /dev/null") != 0: - log.fatal("Could not find 'pygettext'. Strange.") - log.fatal("It should be included in the Python " \ - "distribution.") - sys.exit(1) - - # msgmerge - if os.system("msgmerge --version > /dev/null") != 0: - log.fatal("Could not find 'msgmerge'. Please install " \ - "Gettext.") - sys.exit(1) - - # msgfmt - if os.system("msgfmt --version > /dev/null") != 0: - log.fatal("Could not find 'msgfmt'. Please install " \ - "Gettext.") - sys.exit(1) - - # ----------------------------------------------------------------- - - # build translations - if os.path.isdir('po'): - log.info("building translations") - if os.system("cd po && make gmo") != 0: - sys.exit(1) - - else: - # on non posix systems just run msgfmt on existing .po files - if os.path.isdir('po'): - # msgfmt.py - argv0_path = os.path.dirname(os.path.abspath(sys.executable)) - sys.path.append(argv0_path + "\\tools\\i18n") - - msgfmt_ok = 0 - try: - import msgfmt - msgfmt_ok = 1 - except: - pass - - if msgfmt_ok == 1: - # pygettext.py exist in Python, but no msgmerge, so - # just create a placeholder... - potfile = open('po/'+ self.package +'.pot', 'w') - potfile.write("#placeholder") - potfile.close() - - # build translations - log.info("building translations") - for f in os.listdir('po'): - if f[-3:] == '.po': - msgfmt.make('po/'+f, 'po/'+f[:-3]+'.gmo') - msgfmt.MESSAGES = {} - - # --------------------------------------------------------------------- - # do package specific stuff self.build_files(action) _______________________________________________ commit-gnue mailing list commit-gnue@gnu.org http://lists.gnu.org/mailman/listinfo/commit-gnue