Skip to content

Commit 2f6bf95

Browse files
committed
Use new docstring format for python modules
1 parent 7552aec commit 2f6bf95

File tree

2 files changed

+3
-87
lines changed

2 files changed

+3
-87
lines changed

python/docstrings_gw_simulators.json

Lines changed: 0 additions & 83 deletions
This file was deleted.

python/simulators/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
set(PYTHON_OPM_SIMULATORS_PACKAGE_PATH ${PROJECT_BINARY_DIR}/python/opm/simulators)
22

3-
# Set the path to the input docstrings.json file and the output .hpp file
3+
# Set the path to the input docstrings.json file and the output .hpp files
44
set(PYTHON_DOCSTRINGS_FILE "${PROJECT_SOURCE_DIR}/python/docstrings_simulators.json")
55
set(PYTHON_DOCSTRINGS_GENERATED_HPP "${PROJECT_BINARY_DIR}/python/PyBlackOilSimulatorDoc.hpp")
6-
set(PYTHON_GW_DOCSTRINGS_FILE "${PROJECT_SOURCE_DIR}/python/docstrings_gw_simulators.json")
76
set(PYTHON_GW_DOCSTRINGS_GENERATED_HPP "${PROJECT_BINARY_DIR}/python/PyGasWaterSimulatorDoc.hpp")
87
# Note: If the new find_package(Python3) is used in the top level CMakeLists.txt, the variable
98
# ${PYTHON_EXECUTABLE} is set there to ${Python3_EXECUTABLE}
@@ -26,8 +25,8 @@ add_custom_command(
2625
OUTPUT ${PYTHON_GW_DOCSTRINGS_GENERATED_HPP}
2726
COMMAND ${CMAKE_COMMAND} -E env PYTHONPATH=${CMAKE_SOURCE_DIR}
2827
${PYTHON_EXECUTABLE} ${PYTHON_GENERATE_DOCSTRINGS_PY}
29-
${PYTHON_GW_DOCSTRINGS_FILE} ${PYTHON_GW_DOCSTRINGS_GENERATED_HPP} PYGASWATERSIMULATORDOC_HPP "Opm::Pybind::DocStrings"
30-
DEPENDS ${PYTHON_GW_DOCSTRINGS_FILE}
28+
${PYTHON_DOCSTRINGS_FILE} ${PYTHON_GW_DOCSTRINGS_GENERATED_HPP} PYGASWATERSIMULATORDOC_HPP "Opm::Pybind::DocStrings" "GasWater"
29+
DEPENDS ${PYTHON_DOCSTRINGS_FILE}
3130
COMMENT "Generating PyGasWaterSimulatorDoc.hpp from JSON file"
3231
)
3332
# NOTE: The variable ${PYBIND11_SYSTEM} is set in python/CMakeLists.txt

0 commit comments

Comments
 (0)