    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

   "ortools/constraint_solver/*.proto"
@@ -157,8 +153,8 @@ configure_file(
   COPYONLY)
 
 # Look for python module wheel
-search_python_module(setuptools)
-search_python_module(wheel)
+search_python_module(setuptools setuptools)
+search_python_module(wheel wheel)
 
 # Main Target
 add_custom_target(python_package ALL
@@ -178,7 +174,7 @@ add_custom_target(python_package ALL

+    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)
