BUG: Depend upon Python / pybind11 only if requested#217
BUG: Depend upon Python / pybind11 only if requested#217Leengit wants to merge 1 commit intoEXP-code:mainfrom
Conversation
|
The n-body side also uses The organization here is that If we want no Python support in a minimal build, we'll want to exclude Python support based on |
|
Thinking more about this: |
|
Thank you for the quick response. In case I am not the only one that needs to learn more ...
|
|
Are we sure that this really needs fixing? Or perhaps I should ask directly: what is your goal in eliminating Python support from the code base? |
|
I'll also point out: |
|
My suggestion here is:
at line 69 in Revert all of the other changes and that should suffice. That's very minimal and unlikely to break anything else. We should fix the typos that you found in In principle, Gala is intended to have the entire basis construction stack which includes Python functors. Gala itself wouldn't care, but since it's a Python library, it has the Python environment anyway, so I'm reluctant to pull that out by default. Rather, I think it's better to add a separate exclusion for Python. So vitiating the intent of One final comment. I think this is really a new feature, not a bug fix, so I'd like to rebase against |
|
Okay, I'll do that. Thank you. |
When the cmake option
ENABLE_PYEXPisOFF, we don't need Python or itspybind11.hinclude file. However, currently, a build environment that has Python will try to includepybind11.heven whenENABLE_PYEXPisOFFandpybind11.his not available.The code change checks the value of
ENABLE_PYEXPand, when it isOFF, the build does not try to use any part of Python, includingpybind11.h.