diff --git a/setup.py b/setup.py index 643cdc31..1b38d8c1 100644 --- a/setup.py +++ b/setup.py @@ -18,6 +18,7 @@ def __init__(self, *args, **kwargs): version = os.environ.get('VERSION') commit = os.environ.get('COMMIT') +install_data_files = not bool(os.environ.get('OMIT_DATA_FILES')) assert version and commit @@ -52,7 +53,7 @@ def _long_description(): 'scripts/wifibroadcast@.service']), ('/etc/default', ['scripts/default/wifibroadcast']), ('/etc/sysctl.d', ['scripts/98-wifibroadcast.conf']), - ('/etc/logrotate.d', ['scripts/wifibroadcast'])], + ('/etc/logrotate.d', ['scripts/wifibroadcast'])] if install_data_files else [], keywords="wfb-ng, wifibroadcast", author="Vasily Evseenko",