helpers: don't expect psutil will be installed

It's not in stdlib
This commit is contained in:
James R. Barlow
2019-06-22 02:36:06 -07:00
parent 9b60d3e285
commit 1beb7dfd37
-8
View File
@@ -85,14 +85,6 @@ def available_cpu_count():
return multiprocessing.cpu_count()
except NotImplementedError:
pass
try:
import psutil
return psutil.cpu_count()
except (ImportError, AttributeError):
pass
warnings.warn(
"Could not get CPU count. Assuming one (1) CPU." "Use -j N to set manually."
)