setup: Don't include actions/__pycache__ during installation

Perhaps due to recent changes in distutils, the setup script fails during
install with an error that it is unable to copy actions/__pycache__. Don't
attempt to copy this directory.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2019-10-27 12:13:15 -07:00 committed by James Valleroy
parent ea01ef6f80
commit bb7890263b
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -280,7 +280,8 @@ setuptools.setup(
},
exclude_package_data={'': ['*/data/*']},
data_files=_gather_data_files() +
[('/usr/share/plinth/actions', glob.glob(os.path.join('actions', '*'))),
[('/usr/share/plinth/actions', glob.glob(
os.path.join('actions', '[a-z]*'))),
('/usr/share/man/man1', ['doc/plinth.1'])],
cmdclass={
'install': CustomInstall,