1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-09 12:03:49 -05:00

Fix pyenv install on Solaris / Illumos

pyenv install crashes on Solaris with an empty log file. Adding support for the proper Solaris getconf call in num_cpu_cores fixed it. Tested and working under OmniOS CE r151024.
This commit is contained in:
Kjetil Limkjær
2017-12-13 22:00:14 +01:00
committed by GitHub
parent e71ac9e439
commit c5e4bab858

View File

@@ -156,7 +156,7 @@ num_cpu_cores() {
num="$(sysctl -n hw.ncpu 2>/dev/null || true)"
;;
* )
num="$({ getconf _NPROCESSORS_ONLN ||
num="$({ getconf _NPROCESSORS_ONLN || getconf NPROCESSORS_ONLN ||
grep -c ^processor /proc/cpuinfo; } 2>/dev/null)"
num="${num#0}"
;;