diff options
author | Darsey Litzenberger <dlitz@dlitz.net> | 2022-01-22 19:53:27 -0800 |
---|---|---|
committer | Darsey Litzenberger <dlitz@dlitz.net> | 2022-01-22 19:53:27 -0800 |
commit | 4d75f91e18799a99bbd476b345c558d3ec457762 (patch) | |
tree | fd30a610a0bc89fd2978fcac4bd3d0d827e5aeb8 | |
parent | 7acba5f3a6ff10f1424c309d0d34d2b713233019 (diff) | |
download | pycrypto-4d75f91e18799a99bbd476b345c558d3ec457762.tar.gz |
tools/create-pythons.sh: Set CONCURRENCY_LEVEL automatically
-rwxr-xr-x | tools/create-pythons.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/create-pythons.sh b/tools/create-pythons.sh index 52c7fe9..c51307d 100755 --- a/tools/create-pythons.sh +++ b/tools/create-pythons.sh @@ -66,7 +66,7 @@ EOF } PREFIX=${PREFIX:-$(dirname "$(readlink -f "$0")")/py} -CONCURRENCY_LEVEL=${CONCURRENCY_LEVEL:-5} +CONCURRENCY_LEVEL=${CONCURRENCY_LEVEL:-$(nproc || echo 5)} # Unexport vars export -n PREFIX CONCURRENCY_LEVEL |