code: def initialize_options(self):
          
          install.initialize_options(self)
  
          # leave the proper script according to the platform
          script = SCRIPT_WIN if sys.platform == "win32" else SCRIPT_REST
          self.distribution.scripts = [script]
docs: Run parent initialization and then fix the scripts var.