summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarsey Litzenberger <dlitz@dlitz.net>2022-01-22 19:53:27 -0800
committerDarsey Litzenberger <dlitz@dlitz.net>2022-01-22 19:53:27 -0800
commit4d75f91e18799a99bbd476b345c558d3ec457762 (patch)
treefd30a610a0bc89fd2978fcac4bd3d0d827e5aeb8
parent7acba5f3a6ff10f1424c309d0d34d2b713233019 (diff)
downloadpycrypto-4d75f91e18799a99bbd476b345c558d3ec457762.tar.gz
tools/create-pythons.sh: Set CONCURRENCY_LEVEL automatically
-rwxr-xr-xtools/create-pythons.sh2
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