mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Merge pull request #1055 from klimkjar/fix-illumos
Fix pyenv install on Solaris / Illumos
This commit is contained in:
commit
69d47d5fd7
1 changed files with 3 additions and 0 deletions
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue