A ocaml-pyml.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-pyml?expand=0&rev=2
This commit is contained in:
parent
9518374d8a
commit
d9dc52be99
17
ocaml-pyml.patch
Normal file
17
ocaml-pyml.patch
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user