-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distribution / packaging #1
Comments
External depedencies are usually written in a setup.py file and install automagically with |
I don't know what the "official"/best way to do thins but my recommendation is that single pip install does everything -- including the installation of opam and that makefiles are not used. I bet most python ppl that are not super old have no idea what a makefile is. The That's what I recommend. |
How long would that thing take? I'm OK with having a normal install, but I'd much prefer if when developing |
I assume it would take longer since you're running commands from python (but at least it would feel pythonic, to me at least) but honestly I don't know. I've personally never seen |
Do you have a pointer on what's the recommended Python + C stubs developer workflow? When python is developed alone, do people compile anything at all? |
I will ask one of my full time software developer friends (not just researcher) and see what he thinks and share it here. When I develop, I never compile anything (and if I do pip does it on it's own, I have seen bytecode stuff around but I never touch it or consciously create it). I personally fully embrace the interpreted nature of python and spend as much time developing & running code as a way to develop (e.g. I rarely insert code into my files that I've not already run in a debugger or console). To the extent that I abandoned TensorFlow which is compiled (from within python), and switched to PyTorch for ML/ANN development. |
btw, with my suggested approach in compiling from the setup file, you can run the |
I don't know either. Thanks for all the help. Here the thing is that we def need to compile the OCaml parts, and they are output in |
hmmm...are you doing any of this in a python env? e.g. conda or pyenv? wondering if that is the issue. If that is set up properly you don't need to do hacky things in python to edit it's path or things like that. This is what it sounds is going on here...perhaps. |
We should provide a method for users to install the PyCoq package seamlessly.
It is not clear to me how the install flow should go, as I'm 100% unfamiliar with Python. As of now, PyCoq has to components:
.so
library, built with a standard OCaml toolchain, which contains Coq + the PyCoq interfacesetup.py
and Python utility libraries [that build a Python package usingpip3
I dunno if a pycoq opam package would be able to actually do the pip3 setup, and if that's "allowed" [note local OPAM switches, etc...]
On the other hand, I'm not sure how "external" deps are handled in the Python world.
The text was updated successfully, but these errors were encountered: