summaryrefslogtreecommitdiff
blob: 05942a8f8e7da66fe19f1868e5db7e6339a61a39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- a/src/e3/os/platform.py	2021-11-23 08:50:05.077801145 +0100
+++ b/src/e3/os/platform.py	2021-11-23 08:50:40.646227489 +0100
@@ -85,12 +85,12 @@
 
         # Fetch linux distribution info on linux OS
         if cls.uname.system == "Linux":  # linux-only
-            import ld
+            import distro
 
             cls.ld_info = {
-                "name": ld.name(),
-                "major_version": ld.major_version(),
-                "version": ld.version(),
+                "name": distro.name(),
+                "major_version": distro.major_version(),
+                "version": distro.version(),
             }
 
         # Fetch network interfaces
--- a/setup.py	2021-11-23 20:36:57.056478696 +0100
+++ b/setup.py	2021-11-23 20:36:03.371303043 +0100
@@ -18,7 +18,7 @@
     platform_string = ":sys_platform=='%s'" % p
     extras_require[platform_string] = ["psutil"]
     if p in ("linux", "linux2"):
-        extras_require[platform_string].append("ld")
+        extras_require[platform_string].append("distro")
 
 # Get e3 version from the VERSION file.
 version_file = os.path.join(os.path.dirname(__file__), "VERSION")