1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-14 22:33:52 -05:00

Merge pull request #1055 from klimkjar/fix-illumos

Fix pyenv install on Solaris / Illumos
This commit is contained in:
Yamashita, Yuu
2017-12-15 19:01:19 +09:00
committed by GitHub

View File

@@ -155,6 +155,9 @@ num_cpu_cores() {
Darwin | *BSD )
num="$(sysctl -n hw.ncpu 2>/dev/null || true)"
;;
SunOS )
num="$(getconf NPROCESSORS_ONLN 2>/dev/null || true)"
;;
* )
num="$({ getconf _NPROCESSORS_ONLN ||
grep -c ^processor /proc/cpuinfo; } 2>/dev/null)"