parameters: (self, dist, script_name, script_text, dev_path=None)
docstring: Generate a legacy script wrapper and install it
docstring_summary: Generate a legacy script wrapper and install it
docstring_tokens: Generate a legacy script wrapper and install it
function: def install_script(self, dist, script_name, script_text, dev_path=None):
          """Generate a legacy script wrapper and install it"""
          spec = str(dist.as_requirement())
          is_script = is_python_script(script_text, script_name)
  
          if is_script:
              body = self._load_template(dev_path) % locals()
              script_text = ScriptWriter.get_header(script_text) + body
          self.write_script(script_name, _to_bytes(script_text), 'b')
function_tokens: def install_script ( self , dist , script_name , script_text , dev_path = None ) : spec = str ( dist . as_requirement ( ) ) is_script = is_python_script ( script_text , script_name ) if is_script : body = self . _load_template ( dev_path ) % locals ( ) script_text = ScriptWriter . get_header ( script_text ) + body self . write_script ( script_name , _to_bytes ( script_text ) , 'b' )