giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.08k stars 1.37k forks source link

Add musllinux wheels #2403

Open alugowski opened 2 months ago

alugowski commented 2 months ago

Summary

Description

Enable cibuildwheel's Musl wheel builder.

This enables pip install psutil on Alpine Linux without having to install a compiler, including on the minimal -alpine Python base Docker image.

astoff commented 1 month ago

This would be extremely handy, I hope it gets released soon.

alugowski commented 3 weeks ago

This would be extremely handy, I hope it gets released soon.

I would too, but it seems the maintainers have something against musl but haven't articulated it anywhere that I can see. For example there's this 2 year old PR https://github.com/giampaolo/psutil/pull/2126

MrMino commented 3 weeks ago

I've been repackaging each new psutil version for Musl using cibuildwheel and never ran into an issue with it. I just have an automated job that creates the wheels and pushes them to my local PyPI server.

AFAIR there were other PRs that tried to add this. I would look them up first, it seems like this is a duplicate of one of them.