Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove psutil dependency #591

Merged
merged 2 commits into from
Nov 19, 2024
Merged

chore: Remove psutil dependency #591

merged 2 commits into from
Nov 19, 2024

Conversation

rumpelsepp
Copy link
Member

@rumpelsepp rumpelsepp commented Sep 2, 2024

The psutil dependency is used at exactly one location in the codebase.
The psutil library claims to be portable, however the broadcast feature
is not supported on Windows.

Since we support Linux as Tier-1 and Windows as Tier-2, let's remove the
dependency and use the always available system tooling for this.

As for the why remove dependencies that are not really used in gallia: Recently we had a dependency hell situation on a embedded platform; a C compiler toolchain with several special library version was required to build those dependencies via pip (this one uses C-extensions). In order to avoid this situation in the future dependencies without value are removed (see #582, #590).

The psutil dependency is used at exactly one location in the codebase.
The psutil library claims to be portable, however the broadcast feature
is [not supported](https://github.com/giampaolo/psutil/blob/8d943015ffce86de31d9494ffa3a1eae7dd91719/psutil/arch/windows/net.c#L210) on Windows.

Since we support Linux as Tier-1 and Windows as Tier-2, let's remove the
dependency and use the always available system tooling for this.
@rumpelsepp rumpelsepp merged commit 8379759 into master Nov 19, 2024
12 checks passed
@rumpelsepp rumpelsepp deleted the psutil branch November 19, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant