diff --git a/Generators/McEventSelector/CMakeLists.txt b/Generators/McEventSelector/CMakeLists.txt
index b4209f351eed980d9186fb7da7bbfe0a1679a1fd..582e4fd5356e4bb4a80c5253170de83ba9885729 100644
--- a/Generators/McEventSelector/CMakeLists.txt
+++ b/Generators/McEventSelector/CMakeLists.txt
@@ -1,18 +1,8 @@
-################################################################################
-# Package: McEventSelector
-################################################################################
+# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 
 # Declare the package name:
 atlas_subdir( McEventSelector )
 
-# Declare the package's dependencies:
-atlas_depends_on_subdirs( PUBLIC
-                          Control/AthenaBaseComps
-                          Control/AthenaKernel
-                          GaudiKernel
-                          PRIVATE
-                          Event/EventInfo )
-
 # Component(s) in the package:
 atlas_add_component( McEventSelector
                      src/McAddress.cxx
@@ -23,5 +13,4 @@ atlas_add_component( McEventSelector
                      LINK_LIBRARIES AthenaBaseComps AthenaKernel GaudiKernel EventInfo )
 
 # Install files from the package:
-atlas_install_headers( McEventSelector )
-atlas_install_python_modules( python/*.py )
+atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} )