From 0d491b92929d76339b2d2b37865155f21de190fc Mon Sep 17 00:00:00 2001 From: Marc Helbling Date: Wed, 28 Aug 2024 15:46:41 +0000 Subject: [PATCH] fix python discovery --- openbabel-wheel/CMakeLists.txt | 2 +- openbabel-wheel/pyproject.toml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/openbabel-wheel/CMakeLists.txt b/openbabel-wheel/CMakeLists.txt index 42fb3cb..251a22b 100644 --- a/openbabel-wheel/CMakeLists.txt +++ b/openbabel-wheel/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.11) project(ObabelPythonDistributions CXX) # https://scikit-build-core.readthedocs.io/en/latest/getting_started.html#cmake-file -find_package(Python COMPONENTS Interpreter Development.Module REQUIRED) +# find_package(Python COMPONENTS Interpreter Development.Module REQUIRED) find_package(SWIG COMPONENTS python REQUIRED) include(UseSWIG) diff --git a/openbabel-wheel/pyproject.toml b/openbabel-wheel/pyproject.toml index f6a8383..b080e49 100644 --- a/openbabel-wheel/pyproject.toml +++ b/openbabel-wheel/pyproject.toml @@ -35,8 +35,7 @@ ENABLE_TESTS = "OFF" WITH_INCHI = "ON" PYTHON_BINDINGS = "ON" RUN_SWIG = "ON" -# https://scikit-build-core.readthedocs.io/en/latest/cmakelists.html#finding-python -PYTHON_LIBRARY = "/opt/python/cp311-cp311/lib/" +Python_ROOT_DIR = "/opt/python/cp311-cp311/" [tool.cibuildwheel] manylinux-x86_64-image = "marchelbling/manylinux2014_x86_64-dev:2ca4f69"