From 79d9e36a0b824548a0f2bc83cb948fc5ce668151 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 24 Nov 2009 20:43:11 -0500 Subject: Do not create the .mo files during setup. This makes things go much faster. The tests do require a partial French translation for digester.txt, so just include the bare minimum, already msgfmt'd in the mailman.testing package. --- setup.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 9e4f87e97..fd7565fd3 100644 --- a/setup.py +++ b/setup.py @@ -49,18 +49,18 @@ with open('src/mailman/version.py') as fp: # Create the .mo files from the .po files. There may be errors and warnings # here and that could cause the digester.txt test to fail. -start_dir = os.path.dirname('src/mailman/messages') -for dirpath, dirnames, filenames in os.walk(start_dir): - for filename in filenames: - po_file = os.path.join(dirpath, filename) - basename, ext = os.path.splitext(po_file) - if ext <> '.po': - continue - mo_file = basename + '.mo' - if (not os.path.exists(mo_file) or - os.path.getmtime(po_file) > os.path.getmtime(mo_file)): - # The mo file doesn't exist or is older than the po file. - os.system('msgfmt -o %s %s' % (mo_file, po_file)) +## start_dir = os.path.dirname('src/mailman/messages') +## for dirpath, dirnames, filenames in os.walk(start_dir): +## for filename in filenames: +## po_file = os.path.join(dirpath, filename) +## basename, ext = os.path.splitext(po_file) +## if ext <> '.po': +## continue +## mo_file = basename + '.mo' +## if (not os.path.exists(mo_file) or +## os.path.getmtime(po_file) > os.path.getmtime(mo_file)): +## # The mo file doesn't exist or is older than the po file. +## os.system('msgfmt -o %s %s' % (mo_file, po_file)) -- cgit v1.2.3-70-g09d2