Skip to content
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

pip install for cppad_py #20

Open
bradbell opened this issue Jan 30, 2023 · 3 comments
Open

pip install for cppad_py #20

bradbell opened this issue Jan 30, 2023 · 3 comments
Assignees

Comments

@bradbell
Copy link

bradbell commented Jan 30, 2023

I noticed that cmeel creates a wheel for CppAD; see
https://pypi.org/project/cmeel-cppad/20220000.4/

Do you think this technology could be used to easily create a pip install for cppad_py ?; see
https://cppad-py.readthedocs.io/en/latest/setup_py.html

If we were to try this, I would suggest starting with include_mixed false; see
https://cppad-py.readthedocs.io/en/latest/get_cppad_sh.html#get-cppad-sh-settings-include-mixed

@nim65s
Copy link
Collaborator

nim65s commented Jan 30, 2023

Hi @bradbell,

https://github.com/cmake-wheel/cmeel-cppad was initially meant for https://github.com/Simple-Robotics/pycppad ; but as https://github.com/bradbell/cppad_py is also using CMake, It should be possible to distribute a wheel for it.
I'll give it a try in the week

@nim65s nim65s self-assigned this Jan 30, 2023
@bradbell
Copy link
Author

Just to provide background, once the cppad_mxied package is included one gets an AD enabled python interface to Ipopt; for example, see
https://cppad-py.readthedocs.io/en/latest/mixed_optimize_fixed_2_py.html

@nim65s
Copy link
Collaborator

nim65s commented Feb 13, 2023

Hi @bradbell,

I gave it a short try, and notice that CMake is not the primary configuration step: some of it is handle by setup.py, so this is not directly compatible with cmeel. I'll probably be able to dig further and workaround this issue, and I started a bit in this direction, but I'm currently taking a month off, so don't expect much progress soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants