Skip to content

Possible cmake improvements#1

Open
raymondEhlers wants to merge 2 commits into
matplo:mainfrom
raymondEhlers:cmakes_changes
Open

Possible cmake improvements#1
raymondEhlers wants to merge 2 commits into
matplo:mainfrom
raymondEhlers:cmakes_changes

Conversation

@raymondEhlers
Copy link
Copy Markdown

I was attempting to install and run heppyy on hiccup and ran into a few small issues. I use pyenv for managing python installations - it tends to be a bit more troublesome than standard python installs, but allows for more customization. The changes needed to support it are:

  1. Bump the minimum CMake version. This uses a much better find_python approach. Otherwise, it doesn't find my installation. Note that you can always install cmake from pypi if the native one is too old.
  2. Reduces the required components in find_python. Per here, this should be enough. I'm not sure if cppyy has stricter requirements, but I was able to compile and test heppyy without error using this approach, so it seems okay as a baseline. I didn't test extensively what this difference implies, so feel free to drop this one (I think 1 is worth keeping because it shouldn't cost anything)

From https://scikit-build-core.readthedocs.io/en/latest/faqs.html#finding-python,
including the `Embed` module (which is implied by `Development`) is often
note needed. However, cppyy may reintroduce this requirement - I'm not sure
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

Successfully merging this pull request may close these issues.

1 participant