From ae172c0b2d9b8383704bf9e6ac1be50d8e64d166 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 30 Dec 2022 13:07:11 +0100 Subject: setup.py: Drop lsb check Otherwise we would also skip the check for /etc/debian-release which is more reliable these days. --- setup.py | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/setup.py b/setup.py index 6cdf17b..69c36c8 100644 --- a/setup.py +++ b/setup.py @@ -20,18 +20,12 @@ from setuptools import setup data_files = [] -try: - import lsb_release - if (lsb_release.get_distro_information()['ID'] in ['Debian'] or - os.path.exists('/etc/debian_version')): - data_files = [('../etc/apt/apt.conf.d/', - ['apt/50whatmaps_apt']), - ('../etc/apt/apt.conf.d/', - ['apt/20services']), - ] -except ImportError: - pass - +if os.path.exists('/etc/debian_version'): + data_files = [('../etc/apt/apt.conf.d/', + ['apt/50whatmaps_apt']), + ('../etc/apt/apt.conf.d/', + ['apt/20services']), + ] setup(name="whatmaps", author='Guido Günther', -- cgit v1.2.3