From 61827e1441b7e52053aec9024c877578ff01b5b2 Mon Sep 17 00:00:00 2001 From: Vasily Evseenko Date: Tue, 17 Sep 2024 14:50:45 +0300 Subject: [PATCH] Add openwrt build system compatibility --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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",