_platform.get_cpu_count: use psutil instead of os

Be Windows-friendly by using the portable psutil.Process().cpu_affinity() instead of os.sched_getaffinity.

Note that unfortunately this still doesn't work on Mac, so we keep that platform-specific override.

Edited by Angelos Evripiotis

Merge request reports

Loading