--- tensorflow/compiler/mlir/quantization/tensorflow/BUILD.orig	2022-09-06 21:29:53 UTC
+++ tensorflow/compiler/mlir/quantization/tensorflow/BUILD
@@ -32,7 +32,7 @@ genrule(
     outs = [
         "passes/quantized_function_library.h",
     ],
-    cmd = "$(location gen_quantized_function_library) --output_file $(RULEDIR)/passes/quantized_function_library.h --src $(SRCS)",
+    cmd = "%%PYTHON%% $(location gen_quantized_function_library) --output_file $(RULEDIR)/passes/quantized_function_library.h --src $(SRCS)",
     exec_tools = ["gen_quantized_function_library"],
 )
 
