Skip to content
Snippets Groups Projects
Commit c69ac541 authored by Samuel Burbulla's avatar Samuel Burbulla Committed by Andreas Dedner
Browse files

Move the dune configure command to DunePythonMacros.cmake.

Remove CONFIGURE_DUNEPY variable.
parent 5ce16fb2
Branches
Tags
1 merge request!932Merge of small MRs that make changes to the Python bindings
......@@ -131,13 +131,6 @@ function(dune_python_install_package)
COMMENT "Installing the python package at ${PYINST_FULLPATH}"
)
# Add a custom command that triggers the configuration of dune-py
set(CONFIGURE_DUNEPY -m dune configure)
add_custom_command(TARGET ${targetname} POST_BUILD
COMMAND ${Python3_EXECUTABLE} ${CONFIGURE_DUNEPY}
)
add_dependencies(install_python ${targetname})
# Define rules for `make install` that install a wheel into a central wheelhouse
......
......@@ -23,4 +23,10 @@ if( DUNE_ENABLE_PYTHONBINDINGS )
endfunction()
include(DuneAddPybind11Module)
# Add a custom command that triggers the configuration of dune-py
add_custom_command(TARGET install_python POST_BUILD
COMMAND ${Python3_EXECUTABLE} -m dune configure
)
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment