Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
pip._vendor.distlib.scripts.ScriptMaker Class Reference
Inheritance diagram for pip._vendor.distlib.scripts.ScriptMaker:
_object

Public Member Functions

def __init__
 
def get_manifest
 
def dry_run
 
def dry_run
 
def make
 
def make_multiple
 

Public Attributes

 source_dir
 
 target_dir
 
 add_launchers
 
 force
 
 clobber
 
 set_mode
 
 variants
 

Static Public Attributes

 script_template = SCRIPT_TEMPLATE
 
 executable = None
 
 manifest = _DEFAULT_MANIFEST
 

Private Member Functions

def _get_alternate_executable
 
def _get_shebang
 
def _get_script_text
 
def _write_script
 
def _make_script
 
def _copy_script
 
def _get_launcher
 

Private Attributes

 _fileop
 

Detailed Description

A class to copy or create scripts from source scripts or callable
specifications.

Constructor & Destructor Documentation

def pip._vendor.distlib.scripts.ScriptMaker.__init__ (   self,
  source_dir,
  target_dir,
  add_launchers = True,
  dry_run = False,
  fileop = None 
)

Member Function Documentation

def pip._vendor.distlib.scripts.ScriptMaker._copy_script (   self,
  script,
  filenames 
)
private
def pip._vendor.distlib.scripts.ScriptMaker._get_alternate_executable (   self,
  executable,
  options 
)
private
def pip._vendor.distlib.scripts.ScriptMaker._get_launcher (   self,
  kind 
)
private
def pip._vendor.distlib.scripts.ScriptMaker._get_script_text (   self,
  entry 
)
private
def pip._vendor.distlib.scripts.ScriptMaker._get_shebang (   self,
  encoding,
  post_interp = b'',
  options = None 
)
private
def pip._vendor.distlib.scripts.ScriptMaker._make_script (   self,
  entry,
  filenames,
  options = None 
)
private
def pip._vendor.distlib.scripts.ScriptMaker._write_script (   self,
  names,
  shebang,
  script_bytes,
  filenames,
  ext 
)
private
def pip._vendor.distlib.scripts.ScriptMaker.dry_run (   self)
def pip._vendor.distlib.scripts.ScriptMaker.dry_run (   self,
  value 
)
def pip._vendor.distlib.scripts.ScriptMaker.get_manifest (   self,
  exename 
)
def pip._vendor.distlib.scripts.ScriptMaker.make (   self,
  specification,
  options = None 
)
Make a script.

:param specification: The specification, which is either a valid export
              entry specification (to make a script from a
              callable) or a filename (to make a script by
              copying from a source location).
:param options: A dictionary of options controlling script generation.
:return: A list of all absolute pathnames written to.
def pip._vendor.distlib.scripts.ScriptMaker.make_multiple (   self,
  specifications,
  options = None 
)
Take a list of specifications and make scripts from them,
:param specifications: A list of specifications.
:return: A list of all absolute pathnames written to,

Member Data Documentation

pip._vendor.distlib.scripts.ScriptMaker._fileop
private
pip._vendor.distlib.scripts.ScriptMaker.add_launchers
pip._vendor.distlib.scripts.ScriptMaker.clobber
pip._vendor.distlib.scripts.ScriptMaker.executable = None
static
pip._vendor.distlib.scripts.ScriptMaker.force
pip._vendor.distlib.scripts.ScriptMaker.manifest = _DEFAULT_MANIFEST
static
pip._vendor.distlib.scripts.ScriptMaker.script_template = SCRIPT_TEMPLATE
static
pip._vendor.distlib.scripts.ScriptMaker.set_mode
pip._vendor.distlib.scripts.ScriptMaker.source_dir
pip._vendor.distlib.scripts.ScriptMaker.target_dir
pip._vendor.distlib.scripts.ScriptMaker.variants

The documentation for this class was generated from the following file:

Copyright 2014 Google Inc. All rights reserved.