Files
nixpkgs/pkgs/development/python-modules/pytest-xdist/setup-hook.sh
2025-01-09 18:36:37 +08:00

9 lines
286 B
Bash

pytestXdistHook() {
appendToVar pytestFlags "--numprocesses=$NIX_BUILD_CORES"
}
if [ -z "${dontUsePytestXdist-}" ] && [ -z "${dontUsePytestCheck-}" ]; then
# The flags should be added before pytestCheckHook runs in preDistPhases.
preInstallCheckHooks+=(pytestXdistHook)
fi