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 781d542
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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
4 changes: 3 additions & 1 deletion openbabel-wheel/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ 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_LIBRARY="/opt/python/cp311-cp311/lib/"
Python_EXECUTABLE="/opt/python/cp311-cp311/bin/"
Python_INCLUDE_DIRS="/opt/python/cp311-cp311/include/python3.11"

[tool.cibuildwheel]
manylinux-x86_64-image = "marchelbling/manylinux2014_x86_64-dev:2ca4f69"
Expand Down

0 comments on commit 781d542

Please sign in to comment.