--- src/CMakeLists.txt.orig	2020-09-26 06:18:01 UTC
+++ src/CMakeLists.txt
@@ -72,5 +72,6 @@ if (ENABLE_DEVELOPMENT)
           DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/")
 endif ()
 
+if (BUILD_PYTHON_MODULE)
 add_subdirectory(python)
-
+endif()