Psutil 7.1.2 has been released, now including wheels specifically for free-threaded Python. This was a community effort, requiring refactoring of the C code. Free-threaded Python, introduced in Python 3.13, removes the GIL, enabling true parallel execution and better CPU utilization in multi-core systems. Adoption of free-threaded wheels among popular PyPI packages is still limited, with only a fraction offering them. Wheels provide pre-compiled binaries, simplifying installation, especially for packages with C extensions like psutil. Library authors currently need to build separate wheels for each Python version, leading to increased complexity. The author anticipates improvements in Python 3.15 to facilitate universal wheels, streamlining distribution. PEP 803 and PEP 809 aim to standardize wheel naming to allow a single wheel for multiple versions. Installation of psutil for free-threaded Python is now straightforward using pip with the `--only-binary=:all:` flag. This guarantees installation of the desired pre-compiled wheels, avoiding source builds.
gmpy.dev
gmpy.dev
Create attached notes ...
