-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Compile with Stan as a library (Stan 2.22) #217
Comments
I don't think numpy's install_clib works with the current distutils. PyStan 2 sundials update PR has one "working" solution which could be used. Basically only thing what is "edited" is for |
Should we also compile Sundials at setup and only link them to the model? Then we could compile C++ and C in different steps. |
Eventually. I want to take this slow though. I think it was a mistake to make a release which didn't have linux or gcc support. I also do want to identify a "standard" way of distributing compiled libraries, if one exists. If numpy's install_clib no longer works, then we should look at what packages which relied on that are doing now. If no other packages are doing what we are doing then we can, of course, develop a custom solution. |
Yeah, we need to find which package has C and C++ (with c++14). |
It may be worth looking at Here's an issue in poetry's repo which describes the approach: python-poetry/poetry#1351 |
This is no longer really relevant. stanc3 changes these considerations a bit. |
Stan 2.21 requires using TBB as an external library. We can no longer use the header-only approach.
Seems simplest to start with 2.20 and get things working here. We can look at how RStan does it. (I'm almost positive they do not do header-only.)
Fairly sure we have to abandon
pbr
and use something like numpy's install_clib.Suggested path:
The text was updated successfully, but these errors were encountered: