simplifications
diff --git a/python/ducc.cc b/python/ducc.cc
index fbfdfe8..c9743bc 100644
--- a/python/ducc.cc
+++ b/python/ducc.cc
@@ -22,7 +22,9 @@
 #include "python/healpix.cc"
 #include "python/misc.cc"
 #include "python/pointingprovider.cc"
+#ifdef DUCC0_USE_MPI
 #include "python/mpi.cc"
+#endif
 
 using namespace ducc0;
 
@@ -37,5 +39,7 @@
   add_healpix(m);
   add_misc(m);
   add_pointingprovider(m);
+#ifdef DUCC0_USE_MPI
   add_mpi(m);
+#endif
   }
diff --git a/setup.py b/setup.py
index 2b494e9..407a978 100644
--- a/setup.py
+++ b/setup.py
@@ -9,10 +9,7 @@
 pkgname = 'ducc0'
 version = '0.6.0'
 
-
-mpi_compile_args = os.popen("mpiCC --showme:compile").read().strip().split(' ')
-mpi_compile_args.append("-DDUCC0_USE_MPI")
-mpi_link_args    = os.popen("mpiCC --showme:link").read().strip().split(' ')
+USE_MPI = False
 
 def _get_files_by_suffix(directory, suffix):
     path = directory
@@ -58,8 +55,12 @@
                                 '-s']
 # if you want debugging info, remove the "-s" from python_module_link_args
 
-extra_compile_args+=mpi_compile_args
-python_module_link_args+=mpi_link_args
+if USE_MPI:
+    extra_compile_args += (
+        os.popen("mpiCC --showme:compile").read().strip().split(' ') +
+        ["-DDUCC0_USE_MPI"])
+    python_module_link_args += (
+        os.popen("mpiCC --showme:link").read().strip().split(' '))
 
 depfiles = (_get_files_by_suffix('.', 'h') +
             _get_files_by_suffix('.', 'cc') +