    COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:sorted_interval_list> ${PYTHON_PROJECT}/util
    #COMMAND ${Python3_EXECUTABLE} setup.py bdist_egg bdist_wheel
 -  COMMAND ${Python3_EXECUTABLE} setup.py bdist_wheel
-+  COMMAND ${Python3_EXECUTABLE} setup.py develop sdist --no-deps
++  COMMAND ${Python3_EXECUTABLE} setup.py sdist
    BYPRODUCTS
      python/${PYTHON_PROJECT}
      python/build

+    message(FATAL_ERROR "Can't find python module \"${MODULE_NAME}\", please install it using your system package manager.")
   endif()
 endfunction()
 
@@ -64,7 +60,7 @@ function(search_python_internal_module MODULE_NAME)
 endfunction()
 
 # Generate Protobuf py sources with mypy support
-search_python_module(mypy-protobuf)
+search_python_module(mypy_protobuf mypy-protobuf)

   search_python_internal_module(venv)
   # Testing using a vitual environment
   set(VENV_EXECUTABLE ${Python3_EXECUTABLE} -m venv)
--
2.30.1 (Apple Git-130)
