From 3683a69ee98219c812e2c2d79172b3a5f674fdac Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Thu, 8 Feb 2024 16:16:19 +0000 Subject: [PATCH] do-not-install-python-scripts Gbp-Pq: Name do-not-install-python-scripts.patch --- bin/CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt index 853a04d..10393ee 100644 --- a/bin/CMakeLists.txt +++ b/bin/CMakeLists.txt @@ -5,7 +5,15 @@ install(PROGRAMS dune-ctest duneproject dunecontrol - dunepackaging.py dune-git-whitespace-hook - rmgenerated.py DESTINATION ${CMAKE_INSTALL_BINDIR}) + +# install these scripts only if Python bindings are enabled +if(DUNE_ENABLE_PYTHONBINDINGS) + install(PROGRAMS + dunepackaging.py + rmgenerated.py + DESTINATION ${CMAKE_INSTALL_BINDIR}) +endif() + + -- 2.30.2