Skip to content

Commit

Permalink
deps: exchange ld for distro
Browse files Browse the repository at this point in the history
  • Loading branch information
atalii committed Apr 11, 2024
1 parent 5ea4945 commit cf8ccdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ dependencies = [
"psutil; sys_platform=='linux'",
"psutil; sys_platform=='linux2'",
"psutil; sys_platform=='darwin'",
"ld; sys_platform=='linux'",
"ld; sys_platform=='linux2'",
"distro; sys_platform=='linux'",
"distro; sys_platform=='linux2'",
]

[project.urls]
Expand Down
8 changes: 4 additions & 4 deletions src/e3/os/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ def fetch_system_data(cls) -> None:

# 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 core numbers. Note that the methods does not work
Expand Down

0 comments on commit cf8ccdd

Please sign in to comment.