From d9dc52be99b21c66a1599f24c58cfd5e01e15b8028e2e09e4262c19dba9fd952 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Fri, 1 Nov 2019 23:46:40 +0000 Subject: [PATCH] A ocaml-pyml.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-pyml?expand=0&rev=2 --- ocaml-pyml.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ocaml-pyml.patch 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