From 8a1fdcc061202aef6746fcd4222ab562c499ff86 Mon Sep 17 00:00:00 2001 From: Raymond Ehlers Date: Thu, 7 Dec 2023 01:00:32 +0000 Subject: [PATCH 1/2] Use newer find_python, which better supports pyenv --- heppyy/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heppyy/CMakeLists.txt b/heppyy/CMakeLists.txt index d0552d8..f7c9d09 100644 --- a/heppyy/CMakeLists.txt +++ b/heppyy/CMakeLists.txt @@ -1,5 +1,5 @@ # This file is just an orchestration -cmake_minimum_required(VERSION 3.13.5) +cmake_minimum_required(VERSION 3.15) # SWIG: use SWIG_MODULE_NAME property. if(POLICY CMP0086) cmake_policy(SET CMP0086 NEW) From 954f47c638815131117d3c7cfc04483452c0cb0b Mon Sep 17 00:00:00 2001 From: Raymond Ehlers Date: Thu, 7 Dec 2023 01:00:58 +0000 Subject: [PATCH 2/2] May not need full development module 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 --- heppyy/cmake/heppyy_find_python.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heppyy/cmake/heppyy_find_python.cmake b/heppyy/cmake/heppyy_find_python.cmake index 817dfcb..11345f1 100644 --- a/heppyy/cmake/heppyy_find_python.cmake +++ b/heppyy/cmake/heppyy_find_python.cmake @@ -1,4 +1,4 @@ -find_package(Python 3.6 REQUIRED COMPONENTS Interpreter Development NumPy) +find_package(Python 3.6 REQUIRED COMPONENTS Interpreter Development.Module NumPy) if (Python_FOUND) message(STATUS "${Green}Python ver. ${Python_VERSION} found.${ColourReset}") set(HEPPY_PYTHON_FOUND True)