diff --git a/doc/conf.py.in b/doc/conf.py.in
index 7d887449d9c74677fd4db385b00274b69eba0b1f..5c3f8f0049765f08eba3916b3a953d63916dd500 100644
--- a/doc/conf.py.in
+++ b/doc/conf.py.in
@@ -17,7 +17,7 @@
 # pylint: disable=invalid-name,missing-docstring
 
 import sys
-
+sys.dont_write_bytecode = True
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.