Comments (5)
This is a sort of hacky solution, but do you know about stickytape? It is a script that allows you to "rollup" all the imported modules of your python program into a single mega script. Then you (I think) should probably be able to use the mega-script as your interface instead of your original interface.
from ocaml_python_bindgen.
Check this example out: https://github.com/mooreryan/pyml_bindgen_stickytape_example
The executable that it generates is movable...it works on my computer from any directory, and even if I move it on to a different server, without having to mess around with the PYTHONPATH
or anything.
from ocaml_python_bindgen.
from ocaml_python_bindgen.
I consider this question has been properly answered. I will try soon the proposed solution.
from ocaml_python_bindgen.
I think, this suggestion is great, but I will just use the unix cat command and achieve the same effect
in my gen_bindings.sh which invokes pyml_bindgen. :)
from ocaml_python_bindgen.
Related Issues (10)
- supporting python functions returning tuples would be _very_ useful HOT 9
- adder.py needs to be in the current working directory HOT 8
- Generated OCaml interface's style HOT 6
- You don't always need to generate the pyobject conversions functions
- --embed-python-source HOT 29
- "could not create val_spec" is not very helpful HOT 3
- t option and custom option arguments are tricky to handle correctly HOT 1
- pyml_bindgen invocation example in case there is no class [question] HOT 4
- there are many depends in the opam file HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocaml_python_bindgen.