Browse Source

Merge pull request #1055 from klimkjar/fix-illumos

Fix pyenv install on Solaris / Illumos
pull/1058/head
Yamashita, Yuu 8 years ago
committed by GitHub
parent
commit
69d47d5fd7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      plugins/python-build/bin/python-build

+ 3
- 0
plugins/python-build/bin/python-build 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)"

Loading…
Cancel
Save