diff --git a/dune/fufem/dunepython.hh b/dune/fufem/dunepython.hh
index 073a69d082784fe2be0d42fb6f2df8ded6b29bd7..fba3955746271556b09d1d024d9700f4b77d386b 100644
--- a/dune/fufem/dunepython.hh
+++ b/dune/fufem/dunepython.hh
@@ -5,7 +5,7 @@
 
 // Only introduce the dune-python interface if python
 // was found and enabled.
-#if HAVE_PYTHON
+#if HAVE_PYTHON || DOXYGEN
 
 #include <dune/fufem/python/reference.hh>
 #include <dune/fufem/python/module.hh>
diff --git a/dune/fufem/python/callable.hh b/dune/fufem/python/callable.hh
index bd6d266bca7e8927bbf62e93d8727703a55032d8..37b825239907e77dd09a7ceb07e2983e24811a9d 100644
--- a/dune/fufem/python/callable.hh
+++ b/dune/fufem/python/callable.hh
@@ -5,7 +5,7 @@
 
 // Only introduce the dune-python interface if python
 // was found and enabled.
-#if HAVE_PYTHON
+#if HAVE_PYTHON || DOXYGEN
 
 #include <Python.h>
 
diff --git a/dune/fufem/python/common.hh b/dune/fufem/python/common.hh
index 553eaa5b7eca153b4391272039946ef3f9139897..28743151f279d561cea421a550f53ba0c4652a58 100644
--- a/dune/fufem/python/common.hh
+++ b/dune/fufem/python/common.hh
@@ -5,7 +5,7 @@
 
 // Only introduce the dune-python interface if python
 // was found and enabled.
-#if HAVE_PYTHON
+#if HAVE_PYTHON || DOXYGEN
 
 #include <Python.h>
 
diff --git a/dune/fufem/python/conversion.hh b/dune/fufem/python/conversion.hh
index 0617bb00a55b19b530de77f4a872e0844ae3b731..b34e9d85c3b000c53ce38f88edc112630ae2cda0 100644
--- a/dune/fufem/python/conversion.hh
+++ b/dune/fufem/python/conversion.hh
@@ -5,7 +5,7 @@
 
 // Only introduce the dune-python interface if python
 // was found and enabled.
-#if HAVE_PYTHON
+#if HAVE_PYTHON || DOXYGEN
 
 #include <Python.h>
 
diff --git a/dune/fufem/python/function.hh b/dune/fufem/python/function.hh
index 985edb85a699aacc70cc462604da41222f9ca7a6..24813de93f2d8ae94c7fc0754e41f0e1bc45894e 100644
--- a/dune/fufem/python/function.hh
+++ b/dune/fufem/python/function.hh
@@ -5,7 +5,7 @@
 
 // Only introduce the dune-python interface if python
 // was found and enabled.
-#if HAVE_PYTHON
+#if HAVE_PYTHON || DOXYGEN
 
 #include <Python.h>
 
diff --git a/dune/fufem/python/module.hh b/dune/fufem/python/module.hh
index fe33c52d612935ad47fc1aadcfcc9625a72c2a9b..98c15cc1107cbe7ae7fba27d6b719bb9255f4ee0 100644
--- a/dune/fufem/python/module.hh
+++ b/dune/fufem/python/module.hh
@@ -5,7 +5,7 @@
 
 // Only introduce the dune-python interface if python
 // was found and enabled.
-#if HAVE_PYTHON
+#if HAVE_PYTHON || DOXYGEN
 
 #include <Python.h>
 
diff --git a/dune/fufem/python/reference.hh b/dune/fufem/python/reference.hh
index a74fcb9257e38e7538515290824da4a9e337e74b..6f9fb9db50844e5748f8f240a50370da7ac0ac39 100644
--- a/dune/fufem/python/reference.hh
+++ b/dune/fufem/python/reference.hh
@@ -5,7 +5,7 @@
 
 // Only introduce the dune-python interface if python
 // was found and enabled.
-#if HAVE_PYTHON
+#if HAVE_PYTHON || DOXYGEN
 
 #include <Python.h>