do-not-install-python-scripts
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Sat, 19 Mar 2022 12:10:34 +0000 (12:10 +0000)
committerDrew Parsons <dparsons@debian.org>
Sat, 19 Mar 2022 12:10:34 +0000 (12:10 +0000)
Gbp-Pq: Name do-not-install-python-scripts.patch

bin/CMakeLists.txt

index 04ab0d0fd6544b37902e922385ebe26f7cb488e9..3de3faa136f80e741a91d2bc15125a135acd7ec5 100644 (file)
@@ -2,8 +2,14 @@ install(PROGRAMS
   dune-ctest
   duneproject
   dunecontrol
-  dunepackaging.py
   dune-git-whitespace-hook
-  rmgenerated.py
-  setup-dunepy.py
   DESTINATION ${CMAKE_INSTALL_BINDIR})
+
+# install these scripts only if Python bindings are enabled
+if(DUNE_ENABLE_PYTHONBINDINGS)
+  install(PROGRAMS
+    dunepackaging.py
+    rmgenerated.py
+    setup-dunepy.py
+    DESTINATION ${CMAKE_INSTALL_BINDIR})
+endif()