diff --git a/build-support/bin/rust/calculate_engine_hash.sh b/build-support/bin/rust/calculate_engine_hash.sh index 86d2bbb0e2b..8c6ea36a7f2 100644 --- a/build-support/bin/rust/calculate_engine_hash.sh +++ b/build-support/bin/rust/calculate_engine_hash.sh @@ -35,7 +35,8 @@ function calculate_current_hash() { echo "${MODE_FLAG}" echo "${RUST_TOOLCHAIN_CONTENTS}" uname -mps - "${PY}" --version 2>&1 + # the engine only depends on the implementation and major.minor version, not the patch + "${PY}" -c 'import sys; print(sys.implementation.name, sys.version_info.major, sys.version_info.minor)' git ls-files --cached --others --exclude-standard \ "${NATIVE_ROOT}" \ "${REPO_ROOT}/rust-toolchain" \