Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str FunctionDef arguments args defaults vararg body Assign NameStore BinOpAdd TupleLoad AttributeLoad NameLoad attr NameLoad Return CompareEq Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad ClassDef bases NameLoad body Pass decorator_list If UnaryOpNot CompareEq NameLoad Num body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Raise Call NameLoad NameLoad decorator_list Expr Call AttributeLoad Call NameLoad NameLoad attr Str NameLoad FunctionDef arguments args NameParam NameParam defaults TupleLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str If UnaryOpNot Call NameLoad Str Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Return Num finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad Str Str Str Str NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad If CompareIn Str AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index Str Import alias Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BoolOpOr CompareIn Str AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr TryExcept body Import alias handlers ExceptHandler type NameLoad body Return Call NameLoad NameLoad NameLoad NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Return handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Num orelse Delete NameDel SubscriptDel AttributeLoad NameLoad attr Index Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Raise NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListLoad Str Str BinOpMod Str Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body If CompareNotEq Call AttributeLoad NameLoad attr Str body Return NameLoad Assign NameStore ListLoad Str Str Str Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler body Return NameLoad finalbody Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore ListLoad Str NameLoad Str NameLoad If Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore ListLoad Str Str If NameLoad body AugAssignAdd NameStore ListLoad Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Str Str Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler body Return NameLoad finalbody Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore ListLoad Str NameLoad Str NameLoad AugAssignAdd NameStore ListLoad Str If Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore ListLoad Str If NameLoad body AugAssignAdd NameStore ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Str Str Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler body Return NameLoad finalbody Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Raise NameLoad TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias Assign NameStore NameStore NameLoad TryFinally body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad finalbody If NameLoad body Expr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad FunctionDef arguments args defaults body Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad AttributeLoad NameLoad attr Num body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Import alias Import alias ImportFrom alias Assign NameStore ListLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareLt AttributeLoad NameLoad attr TupleLoad Num Num body FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str keyword NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num If CompareGt AttributeLoad NameLoad attr Num body Raise orelse Expr Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad If AttributeLoad NameLoad attr body If CompareLt AttributeLoad NameLoad attr TupleLoad Num Num body Expr Call AttributeLoad NameLoad attr Str Raise Call NameLoad Num Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Return Call NameLoad NameLoad Call NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad
N/A N/A Bootstrap setuptools installation

If you want to use setuptools in your package's setup.py, just include this
file in the same directory with it, and add this to the top of your setup.py::

    from ez_setup import use_setuptools
    use_setuptools()

If you want to require a specific version of setuptools, set a download
mirror, or use an alternate download directory, you can do so by supplying
the appropriate options to ``use_setuptools()``.

This file can also be run as a script to install or upgrade setuptools.
 N/A os N/A shutil N/A sys N/A tempfile N/A tarfile N/A optparse N/A subprocess N/A platform distutils log N/A N/A site USER_SITE N/A N/A N/A ImportError N/A N/A USER_SITE None N/A DEFAULT_VERSION 1.1 N/A DEFAULT_URL https://pypi.python.org/packages/source/s/setuptools/ _python_cmd N/A N/A N/A args N/A N/A args N/A N/A N/A sys executable args N/A N/A N/A N/A subprocess call args 0 N/A _check_call_py24 N/A N/A cmd N/A args kwargs N/A N/A res N/A N/A subprocess call cmd args kwargs CalledProcessError N/A Exception N/A N/A N/A N/A N/A N/A res 0 N/A N/A msg N/A Command '%s' return non-zero exit status %d N/A cmd res N/A N/A CalledProcessError msg N/A N/A N/A N/A N/A vars subprocess setdefault check_call _check_call_py24 _install N/A N/A tarball install_args N/A N/A N/A N/A tmpdir N/A N/A tempfile mkdtemp N/A N/A N/A log warn Extracting in %s tmpdir N/A old_wd N/A N/A os getcwd N/A N/A N/A N/A N/A os chdir tmpdir N/A tar N/A N/A tarfile open tarball N/A N/A _extractall tar N/A N/A N/A tar close N/A subdir N/A N/A N/A os path join tmpdir N/A N/A N/A os listdir tmpdir N/A 0 N/A N/A N/A os chdir subdir N/A N/A N/A log warn Now working in %s subdir N/A N/A N/A log warn Installing Setuptools N/A N/A N/A _python_cmd setup.py install install_args N/A N/A N/A N/A log warn Something went wrong during the installation. N/A N/A N/A log warn See the error message above. N/A 2 N/A N/A N/A N/A os chdir old_wd N/A N/A N/A shutil rmtree tmpdir N/A _build_egg N/A N/A egg tarball to_dir N/A N/A N/A tmpdir N/A N/A tempfile mkdtemp N/A N/A N/A log warn Extracting in %s tmpdir N/A old_wd N/A N/A os getcwd N/A N/A N/A N/A N/A os chdir tmpdir N/A tar N/A N/A tarfile open tarball N/A N/A _extractall tar N/A N/A N/A tar close N/A subdir N/A N/A N/A os path join tmpdir N/A N/A N/A os listdir tmpdir N/A 0 N/A N/A N/A os chdir subdir N/A N/A N/A log warn Now working in %s subdir N/A N/A N/A log warn Building a Setuptools egg in %s to_dir N/A N/A _python_cmd setup.py -q bdist_egg --dist-dir to_dir N/A N/A N/A N/A os chdir old_wd N/A N/A N/A shutil rmtree tmpdir N/A N/A N/A log warn egg N/A N/A N/A N/A N/A os path exists egg N/A N/A N/A IOError Could not build the egg. N/A _do_download N/A N/A version download_base to_dir download_delay N/A N/A N/A egg N/A N/A N/A os path join to_dir N/A setuptools-%s-py%d.%d.egg N/A version N/A N/A sys version_info N/A 0 N/A N/A sys version_info N/A 1 N/A N/A N/A N/A N/A os path exists egg N/A N/A tarball N/A download_setuptools version download_base to_dir download_delay N/A N/A _build_egg egg tarball to_dir N/A N/A N/A N/A sys path insert 0 egg N/A N/A pkg_resources N/A sys modules N/A N/A N/A N/A sys modules N/A pkg_resources N/A setuptools N/A N/A setuptools bootstrap_install_from egg N/A use_setuptools N/A N/A version download_base to_dir download_delay N/A DEFAULT_VERSION DEFAULT_URL N/A os curdir 15 N/A N/A to_dir N/A N/A N/A os path abspath to_dir N/A was_imported N/A N/A pkg_resources N/A sys modules N/A setuptools N/A sys modules N/A N/A N/A pkg_resources N/A N/A N/A ImportError N/A N/A N/A _do_download version download_base to_dir download_delay N/A N/A N/A N/A N/A pkg_resources require N/A setuptools>= version N/A N/A N/A N/A N/A pkg_resources VersionConflict N/A N/A e N/A N/A N/A sys exc_info N/A 1 N/A was_imported N/A N/A N/A N/A N/A sys stderr write N/A The required version of setuptools (>=%s) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install -U setuptools'.

(Currently using %r)
 N/A version N/A N/A e args N/A 0 N/A N/A N/A sys exit 2 N/A N/A pkg_resources N/A N/A sys modules N/A pkg_resources N/A N/A _do_download version download_base to_dir download_delay N/A N/A N/A pkg_resources DistributionNotFound N/A N/A N/A _do_download version download_base to_dir download_delay N/A download_file_powershell N/A N/A url target cookies N/A None N/A N/A 
    Download the file at url to target using Powershell (which will validate
    trust). Raise an exception if the command cannot complete.
     N/A cookies N/A N/A NotImplementedError N/A target N/A N/A N/A os path abspath target N/A cmd N/A powershell -Command N/A (new-object System.Net.WebClient).DownloadFile(%(url)r, %(target)r) N/A vars N/A N/A N/A subprocess check_call cmd N/A has_powershell N/A N/A N/A N/A N/A N/A N/A N/A platform system Windows N/A N/A False N/A cmd N/A powershell -Command echo test N/A devnull N/A open N/A N/A os path devnull wb N/A N/A N/A N/A N/A N/A N/A subprocess check_call cmd stdout devnull stderr devnull N/A N/A N/A N/A False N/A N/A N/A N/A devnull close N/A True N/A N/A N/A download_file_powershell viable has_powershell download_file_curl N/A N/A url target cookies N/A None N/A N/A cmd N/A curl url --output target N/A N/A N/A url startswith ftp: N/A N/A cmd N/A -P - N/A cookies N/A N/A cmd N/A -b cookies -c cookies N/A N/A N/A subprocess check_call cmd N/A has_curl N/A N/A N/A N/A N/A cmd N/A curl --version N/A devnull N/A open N/A N/A os path devnull wb N/A N/A N/A N/A N/A N/A N/A subprocess check_call cmd stdout devnull stderr devnull N/A N/A N/A N/A False N/A N/A N/A N/A devnull close N/A True N/A N/A N/A download_file_curl viable has_curl download_file_wget N/A N/A url target cookies N/A None N/A N/A cmd N/A wget url --output-document target N/A cmd N/A --no-check-certificate N/A N/A N/A url startswith ftp: N/A N/A cmd N/A --no-passive-ftp N/A cookies N/A N/A cmd N/A --load-cookies cookies N/A N/A N/A subprocess check_call cmd N/A has_wget N/A N/A N/A N/A N/A cmd N/A wget --version N/A devnull N/A open N/A N/A os path devnull wb N/A N/A N/A N/A N/A N/A N/A subprocess check_call cmd stdout devnull stderr devnull N/A N/A N/A N/A False N/A N/A N/A N/A devnull close N/A True N/A N/A N/A download_file_wget viable has_wget download_file_insecure N/A N/A url target cookies N/A None N/A N/A 
    Use Python to download the file, even though it cannot authenticate the
    connection.
     N/A cookies N/A N/A NotImplementedError N/A N/A urllib.request urlopen N/A N/A N/A ImportError N/A urllib2 urlopen N/A src dst None N/A N/A N/A src N/A urlopen url N/A data N/A N/A src read N/A dst N/A open target wb N/A N/A N/A dst write data N/A N/A src N/A N/A N/A N/A src close N/A dst N/A N/A N/A N/A dst close N/A N/A N/A download_file_insecure viable N/A N/A N/A N/A True get_best_downloader N/A N/A N/A N/A N/A downloaders N/A download_file_powershell download_file_wget download_file_curl download_file_insecure N/A dl downloaders N/A N/A N/A N/A dl viable N/A N/A dl N/A download_setuptools N/A N/A version download_base to_dir delay N/A DEFAULT_VERSION DEFAULT_URL N/A os curdir 15 N/A N/A Download setuptools from a specified location and return its filename

    `version` should be a valid setuptools version number that is available
    as an egg for download under the `download_base` URL (which should end
    with a '/'). `to_dir` is the directory where the egg will be downloaded.
    `delay` is the number of seconds to pause before an actual download
    attempt.
     N/A to_dir N/A N/A N/A os path abspath to_dir N/A tgz_name N/A setuptools-%s.tar.gz version N/A url N/A download_base tgz_name N/A saveto N/A N/A N/A os path join to_dir tgz_name N/A N/A N/A N/A N/A os path exists saveto N/A N/A N/A N/A log warn Downloading %s url N/A downloader N/A get_best_downloader N/A N/A downloader url saveto N/A N/A N/A N/A os path realpath saveto N/A _extractall N/A N/A self path members N/A . None N/A N/A Extract all members from the archive to the current working
       directory and set owner, modification time and permissions on
       directories afterwards. `path' specifies a different directory
       to extract to. `members' is optional and must be a subset of the
       list returned by getmembers().
     N/A copy N/A operator tarfile ExtractError N/A directories N/A N/A N/A members None N/A N/A members self N/A tarinfo members N/A N/A N/A N/A tarinfo isdir N/A N/A N/A N/A directories append tarinfo N/A tarinfo N/A N/A copy copy tarinfo N/A N/A tarinfo mode 448 N/A N/A N/A self extract tarinfo path N/A N/A N/A sys version_info N/A 2 4 N/A sorter N/A N/A dir1 dir2 N/A N/A N/A N/A cmp N/A dir1 name N/A dir2 name N/A N/A N/A N/A directories sort sorter N/A N/A N/A directories reverse N/A N/A N/A N/A directories sort key N/A N/A operator attrgetter name reverse True N/A tarinfo directories N/A N/A dirpath N/A N/A N/A os path join path N/A tarinfo name N/A N/A N/A N/A N/A self chown tarinfo dirpath N/A N/A N/A self utime tarinfo dirpath N/A N/A N/A self chmod tarinfo dirpath N/A N/A N/A ExtractError N/A N/A e N/A N/A N/A sys exc_info N/A 1 N/A N/A N/A self errorlevel 1 N/A N/A N/A N/A N/A N/A self _dbg 1 N/A tarfile: %s e N/A _build_install_args N/A N/A options N/A N/A N/A 
    Build the arguments to 'python setup.py install' on the setuptools package
     N/A install_args N/A N/A N/A options user_install N/A N/A N/A N/A sys version_info N/A 2 6 N/A N/A N/A N/A log warn --user requires Python 2.6 or later N/A N/A SystemExit 1 N/A N/A N/A install_args append --user N/A install_args N/A _parse_args N/A N/A N/A N/A N/A 
    Parse the command line for options
     N/A parser N/A N/A optparse OptionParser N/A N/A N/A parser add_option --user dest user_install action store_true default False help install in user site package (requires Python 2.6 or later) N/A N/A N/A parser add_option --download-base dest download_base metavar URL default DEFAULT_URL help alternative URL from where to download the setuptools package N/A N/A options args N/A N/A parser parse_args N/A options N/A main N/A N/A version N/A DEFAULT_VERSION N/A N/A Install or upgrade setuptools and EasyInstall N/A options N/A _parse_args N/A tarball N/A download_setuptools download_base N/A options download_base N/A N/A _install tarball N/A _build_install_args options N/A N/A N/A __name__ __main__ N/A N/A N/A N/A sys exit N/A main