瀏覽代碼

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 年之前
committed by GitHub
父節點
當前提交
c5e4bab858
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      plugins/python-build/bin/python-build

+ 1
- 1
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}"
;;

Loading…
取消
儲存