aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2022-12-30 13:07:11 +0100
committerGuido Günther <agx@sigxcpu.org>2022-12-30 13:08:05 +0100
commitae172c0b2d9b8383704bf9e6ac1be50d8e64d166 (patch)
tree09915baff69e7c2cd0bfab2d01a4e5ae2f16d404
parent6e26ab39a0ed6e22e7a058952a185beb71cd993c (diff)
setup.py: Drop lsb check
Otherwise we would also skip the check for /etc/debian-release which is more reliable these days.
-rw-r--r--setup.py18
1 files 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',