-
Notifications
You must be signed in to change notification settings - Fork 2
/
ocaml-in-python.opam
53 lines (51 loc) · 1.49 KB
/
ocaml-in-python.opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.1.0"
synopsis: "Effortless Python bindings for OCaml modules"
description: """
Effortless Python bindings for OCaml modules
"""
maintainer: ["Thierry Martinez <[email protected]>"]
authors: ["Thierry Martinez <[email protected]>"]
license: "BSD-2-Clause"
homepage: "https://github.com/thierry-martinez/ocaml-in-python"
doc: "https://github.com/thierry-martinez/ocaml-in-python"
bug-reports: "https://github.com/thierry-martinez/ocaml-in-python"
depends: [
"dune" {>= "2.9"}
"ocaml" {>= "4.13.0"}
"ppxlib" {>= "0.26.0"}
"metapp" {>= "0.4.3"}
"metaquot" {>= "0.5.1"}
"pyml" {>= "20220325"}
"conf-python-3-7"
"parmap" {with-test}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/thierry-martinez/ocaml-in-python"
substs: ["python3-command"]
post-messages: "\
You should register the \"ocaml\" package in your Python environment.
There are two options:
(1) either you register the package with \"pip\" using the following
command:
pip install --editable \"%{lib}%/ocaml-in-python\"
(2) or you add the following definition to your environment:
export PYTHONPATH=\"%{share}%/python/:$PYTHONPATH\"
" {success}