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 <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2020-04-21 13:11:15 -07:00 committed by James Valleroy
parent 858c270b49
commit 68132f5dce
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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() +