Skip to content

Commit

Permalink
cmake: fix to the previous commit, again
Browse files Browse the repository at this point in the history
  • Loading branch information
wojdyr committed Jan 11, 2024
1 parent 61e0b4a commit 7607a3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ if (USE_PYTHON)
endif()
add_custom_command(TARGET gemmi_py POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env
"PYTHONPATH=$<TARGET_FILE_DIR:gemmi_py>${sep}${PYTHONPATH}"
pybind11-stubgen gemmi
"PYTHONPATH=$<TARGET_FILE_DIR:gemmi_py>${sep}$ENV{PYTHONPATH}"
${Python_EXECUTABLE} -m pybind11_stubgen gemmi
--enum-class-locations=Ignore:gemmi.ContactSearch
--enum-class-locations=.+:gemmi
--numpy-array-remove-parameters
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[build-system]
requires = ["scikit-build-core~=0.7.0", "pybind11>=2.6.2", "pybind11-stubgen~=2.3.7"]
requires = ["scikit-build-core~=0.7.0", "pybind11>=2.6.2",
"pybind11-stubgen~=2.4.2", "numpy"]
build-backend = "scikit_build_core.build"

# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
Expand Down

0 comments on commit 7607a3c

Please sign in to comment.