Skip to content

Commit

Permalink
fix python discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
marchelbling committed Aug 28, 2024
1 parent 4f7fa8e commit 0d491b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openbabel-wheel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 1 addition & 2 deletions openbabel-wheel/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0d491b9

Please sign in to comment.