diff --git a/setup.py b/setup.py
index 1fa3261d5c31be09519fdfa4a0bc6763bb8e13fb..1b65bb6f31e9b9f3de1dba6761455dc8eb662789 100644
--- a/setup.py
+++ b/setup.py
@@ -20,32 +20,6 @@ extensions = [
 ]
 
 
-class PostInstallCommand(install):
-    """Post-installation for installation mode."""
-
-    def run(self):
-        install.run(self)
-        # check if this is a karabo installation
-        python_path = sys.executable
-
-        if "karabo" not in python_path:
-            print(
-                "Python environment seems to not be a Karabo environment."
-                "Please install PyDetLib manually."
-            )
-            return
-
-        print(
-            "Karabo installation detected, checking for PyDetLib installation"
-        )
-
-        if importlib.util.find_spec("XFELDetAna") is None:
-            print("No PyDetLib installation found, attempting to install")
-            check_call(
-                "karabo -g https://in.xfel.eu/gitlab install pyDetLib master".split() # noqa
-            )
-
-
 class PreInstallCommand(build):
     """Pre-installation for installation mode."""
 
@@ -104,7 +78,6 @@ setup(
     },
     cmdclass={
         "build": PreInstallCommand,
-        "install": PostInstallCommand,
         "build_ext": build_ext,
     },
     ext_modules=extensions,