do-not-install-python-scripts
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Thu, 10 Oct 2024 14:59:54 +0000 (16:59 +0200)
committerMarkus Blatt <markus@dr-blatt.de>
Thu, 10 Oct 2024 14:59:54 +0000 (16:59 +0200)
Gbp-Pq: Name do-not-install-python-scripts.patch

bin/CMakeLists.txt

index 853a04d44242f3e9af7043413a7df3341f3f07e7..10393eeb916381bfdc9ef4d11237d939119809a2 100644 (file)
@@ -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()
+
+