Skip to content

Commit

Permalink
use distro over ld
Browse files Browse the repository at this point in the history
  • Loading branch information
atalii committed Nov 16, 2023
1 parent eed1f5d commit 4b492a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,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")
Expand Down
2 changes: 1 addition & 1 deletion src/e3/os/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def fetch_system_data(cls) -> None:

# Fetch linux distribution info on linux OS
if cls.uname.system == "Linux": # linux-only
import ld
import distro as ld

cls.ld_info = {
"name": ld.name(),
Expand Down

0 comments on commit 4b492a1

Please sign in to comment.