diff --git a/ocaml-pyml.patch b/ocaml-pyml.patch new file mode 100644 index 0000000..8fa2335 --- /dev/null +++ b/ocaml-pyml.patch @@ -0,0 +1,17 @@ +--- a/py.ml ++++ b/py.ml +@@ -532,7 +532,13 @@ let find_interpreter interpreter version minor = + | None -> which (Printf.sprintf "python%d" version')) + with + | Some result -> Some result +- | None -> which "python" ++ | None -> ++ match which "python3" with ++ | Some result -> Some result ++ | None -> ++ match which "python2" with ++ | Some result -> Some result ++ | None -> None + + let version_mismatch interpreter found expected = + Printf.sprintf