From 925f7dd1c16c198fb7e6ad25aef658115052e3cc Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 10 Mar 2019 17:15:45 -0700 Subject: [PATCH] setup: Don't include data/ files as package data - Don't include all data files of a package by default anymore. - Simplify expressions for what is included as part of package data. - Explicitly don't include data/* files in package data. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 3c90b40ac..fb321f0e2 100755 --- a/setup.py +++ b/setup.py @@ -266,13 +266,13 @@ setuptools.setup( 'ruamel.yaml', ], tests_require=['pytest', 'pytest-cov', 'pytest-django'], - include_package_data=True, package_data={ - 'plinth': [ - 'templates/*', 'modules/*/static/*', 'modules/*/templates/*', + '': [ + 'templates/*', 'static/*', 'locale/*/LC_MESSAGES/*.[pm]o' ] }, + exclude_package_data={'': ['*/data/*']}, data_files=_gather_data_files() + [('/usr/share/plinth/actions', glob.glob(os.path.join('actions', '*'))), ('/usr/share/man/man1', ['doc/plinth.1'])],