Browse Source
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.
pull/1055/head
Kjetil Limkjær
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
plugins/python-build/bin/python-build
@ -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}"
;;