From 68132f5dce43e700336e3ad42a434eb8b9b9d170 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 21 Apr 2020 13:11:15 -0700 Subject: [PATCH] setup.py: Don't install/ship .po files - These files are not necessary for the running of the program. Only .mo files are referenced by gettext library at runtime. - This reduces the size of the .deb binary. Tests performed: - Build Debian packages. Upgrade on a stable setup. Switch language to Spanish and notice UI strings in Spanish. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1253a9802..1eaead35e 100755 --- a/setup.py +++ b/setup.py @@ -305,7 +305,7 @@ setuptools.setup( 'requests', ], package_data={ - '': ['templates/*', 'static/*', 'locale/*/LC_MESSAGES/*.[pm]o'] + '': ['templates/*', 'static/*', 'locale/*/LC_MESSAGES/*.mo'] }, exclude_package_data={'': ['*/data/*']}, data_files=_gather_data_files() +