Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier Import alias TryExcept body Expr Call NameLoad Str Import alias Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body If CompareNotEq NameLoad Str body Return Dict Return Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list Assign NameStore BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr TryFinally body Assign TupleStore NameStore NameStore SubscriptLoad ListComp NameLoad comprehension NameStore Call AttributeLoad Call NameLoad NameLoad attr Slice Num Num finalbody Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assert CompareNotIn Str SubscriptLoad NameLoad Index Str NameLoad Return Call AttributeLoad NameLoad attr decorator_list Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Dict Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad Assign AttributeStore NameLoad attr ListLoad Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str ListLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareNotEq AttributeLoad NameLoad attr Str body Assign NameStore Str orelse Assign NameStore Str Assign NameStore Call NameLoad Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareGtE AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareGtE AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If CompareLt AttributeLoad NameLoad attr Str body Return Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body Return Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If CompareLt AttributeLoad NameLoad attr Str body Return Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call NameLoad NameLoad Str TryFinally body Expr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr TryFinally body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore ListLoad NameLoad NameLoad body If BoolOpOr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Continue TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass If CompareIsNot NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad orelse Delete SubscriptDel AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str ListLoad Str ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TryFinally body TryExcept body Expr Call NameLoad Lambda arguments args defaults Call NameLoad NameLoad ListLoad Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str finalbody Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index NameLoad If Call AttributeLoad NameLoad attr Str body Return FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Assign NameStore ListLoad Str AttributeLoad NameLoad attr Str NameLoad Str Str NameLoad NameLoad FunctionDef arguments args defaults body FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list Expr Call NameLoad NameLoad ListLoad Str decorator_list Expr Call NameLoad NameLoad decorator_list Expr Call NameLoad NameLoad keyword NameLoad decorator_list Expr Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareLtELtE Num Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call NameLoad NameLoad decorator_list Expr Call NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Lambda arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad finalbody Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryFinally body Expr Call NameLoad finalbody For NameStore NameLoad body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Assign SubscriptStore AttributeLoad NameLoad attr Slice NameLoad TryFinally body Expr Call NameLoad finalbody Assign SubscriptStore AttributeLoad NameLoad attr Slice NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad TryFinally body Expr Call NameLoad finalbody Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list
N/A N/A Easy install Tests
 N/A sys N/A os N/A shutil N/A tempfile N/A unittest N/A site N/A textwrap N/A tarfile N/A urlparse N/A StringIO N/A distutils.core setuptools.sandbox run_setup SandboxViolation setuptools.command.easy_install easy_install fix_jython_executable get_script_args main setuptools.command.easy_install PthDistributions setuptools.command easy_install easy_install_pkg setuptools.dist Distribution pkg_resources Distribution PRDistribution N/A setuptools.tests.server N/A N/A N/A N/A __import__ multiprocessing N/A logging N/A _LOG N/A N/A logging getLogger test_easy_install N/A N/A N/A logging basicConfig level N/A logging INFO stream N/A sys stderr N/A _MULTIPROC True N/A N/A N/A ImportError N/A N/A _MULTIPROC False N/A _LOG None FakeDist N/A object N/A get_entry_map N/A N/A self group N/A N/A N/A N/A group console_scripts N/A N/A N/A N/A N/A name ep N/A as_requirement N/A N/A self N/A N/A N/A spec N/A N/A N/A WANTED N/A #!%s
# EASY-INSTALL-ENTRY-SCRIPT: 'spec','console_scripts','name'
__requires__ = 'spec'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('spec', 'console_scripts', 'name')()
    )
 N/A fix_jython_executable N/A sys executable N/A SETUP_PY from setuptools import setup

setup(name='foo')
 TestEasyInstallTest N/A N/A unittest TestCase N/A test_install_site_py N/A N/A self N/A N/A N/A dist N/A Distribution N/A cmd N/A easy_install dist N/A N/A cmd sitepy_installed False N/A N/A cmd install_dir N/A N/A tempfile mkdtemp N/A N/A N/A N/A N/A cmd install_site_py N/A sitepy N/A N/A N/A os path join N/A cmd install_dir site.py N/A N/A N/A self assertTrue N/A N/A N/A os path exists sitepy N/A N/A N/A N/A shutil rmtree N/A cmd install_dir N/A test_get_script_args N/A N/A self N/A N/A N/A dist N/A FakeDist N/A old_platform N/A sys platform N/A N/A N/A N/A name script N/A N/A i N/A i N/A N/A N/A get_script_args dist next N/A 0 2 N/A N/A N/A sys platform old_platform N/A N/A N/A self assertEqual script WANTED N/A test_no_setup_cfg N/A N/A self N/A N/A N/A dir N/A N/A tempfile mkdtemp N/A setup_cfg N/A open N/A N/A N/A os path join dir setup.cfg w N/A N/A N/A setup_cfg write [easy_install]
find_links = http://example.com N/A N/A N/A setup_cfg close N/A setup_py N/A open N/A N/A N/A os path join dir setup.py w N/A N/A N/A setup_py write SETUP_PY N/A N/A N/A setup_py close setuptools.dist Distribution _parse_command_line N/A N/A self N/A N/A N/A msg Error: a local setup.cfg was used N/A opts N/A self command_options N/A N/A easy_install opts N/A N/A N/A find_links N/A opts N/A easy_install msg N/A N/A N/A self _old_parse_command_line N/A N/A N/A Distribution _old_parse_command_line N/A Distribution parse_command_line N/A N/A Distribution parse_command_line _parse_command_line N/A old_wd N/A N/A os getcwd N/A N/A N/A N/A N/A os chdir dir N/A N/A reset_setup_stop_context N/A N/A N/A N/A N/A N/A self assertRaises SystemExit main N/A N/A N/A N/A N/A os chdir old_wd N/A N/A N/A shutil rmtree dir N/A N/A Distribution parse_command_line N/A Distribution _old_parse_command_line N/A test_no_find_links N/A N/A self N/A N/A N/A dist N/A Distribution N/A cmd N/A easy_install dist N/A N/A cmd check_pth_processing N/A N/A N/A N/A True N/A N/A cmd no_find_links True N/A N/A cmd find_links N/A link1 link2 N/A N/A cmd install_dir N/A N/A N/A os path join N/A N/A tempfile mkdtemp ok N/A N/A cmd args N/A ok N/A N/A N/A cmd ensure_finalized N/A N/A N/A self assertEqual N/A N/A cmd package_index scanned_urls N/A N/A cmd N/A easy_install dist N/A N/A cmd check_pth_processing N/A N/A N/A N/A True N/A N/A cmd find_links N/A link1 link2 N/A N/A cmd install_dir N/A N/A N/A os path join N/A N/A tempfile mkdtemp ok N/A N/A cmd args N/A ok N/A N/A N/A cmd ensure_finalized N/A keys N/A N/A N/A N/A cmd package_index scanned_urls keys N/A N/A N/A keys sort N/A N/A N/A self assertEqual keys N/A link1 link2 N/A N/A TestPTHFileWriter N/A N/A unittest TestCase N/A test_add_from_cwd_site_sets_dirty N/A N/A self N/A N/A N/A a pth file manager should set dirty
        if a distribution is in site but also the cwd
         N/A pth N/A PthDistributions does-not_exist N/A N/A N/A os getcwd N/A N/A N/A self assertTrue N/A N/A pth dirty N/A N/A N/A pth add N/A PRDistribution N/A N/A os getcwd N/A N/A N/A self assertTrue N/A pth dirty N/A test_add_from_site_is_ignored N/A N/A self N/A N/A N/A N/A N/A os name nt N/A N/A location /test/location/does-not-have-to-exist N/A N/A location c:\does_not_exist N/A pth N/A PthDistributions does-not_exist N/A location N/A N/A N/A self assertTrue N/A N/A pth dirty N/A N/A N/A pth add N/A PRDistribution location N/A N/A N/A self assertTrue N/A N/A pth dirty N/A N/A TestUserInstallTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self dir N/A N/A tempfile mkdtemp N/A setup N/A N/A N/A os path join N/A self dir setup.py N/A f N/A open setup w N/A N/A N/A f write SETUP_PY N/A N/A N/A f close N/A N/A self old_cwd N/A N/A os getcwd N/A N/A N/A os chdir N/A self dir N/A N/A N/A sys version 2.6 N/A N/A N/A self old_has_site N/A easy_install_pkg HAS_USER_SITE N/A N/A self old_file N/A easy_install_pkg __file__ N/A N/A self old_base N/A site USER_BASE N/A N/A site USER_BASE N/A N/A tempfile mkdtemp N/A N/A self old_site N/A site USER_SITE N/A N/A site USER_SITE N/A N/A tempfile mkdtemp N/A N/A easy_install_pkg __file__ N/A site USER_SITE N/A tearDown N/A N/A self N/A N/A N/A N/A N/A os chdir N/A self old_cwd N/A N/A N/A shutil rmtree N/A self dir N/A N/A N/A sys version 2.6 N/A N/A N/A N/A shutil rmtree N/A site USER_BASE N/A N/A N/A shutil rmtree N/A site USER_SITE N/A N/A site USER_BASE N/A self old_base N/A N/A site USER_SITE N/A self old_site N/A N/A easy_install_pkg HAS_USER_SITE N/A self old_has_site N/A N/A easy_install_pkg __file__ N/A self old_file N/A test_user_install_implied N/A N/A self N/A N/A N/A N/A easy_install_pkg HAS_USER_SITE True N/A N/A N/A sys version 2.6 N/A N/A N/A dist N/A Distribution N/A N/A dist script_name setup.py N/A cmd N/A easy_install dist N/A N/A cmd args N/A py N/A N/A N/A cmd ensure_finalized N/A N/A N/A self assertTrue N/A cmd user user should be implied N/A test_multiproc_atexit N/A N/A self N/A N/A N/A N/A _MULTIPROC N/A N/A N/A N/A N/A _LOG info this should not break N/A test_user_install_not_implied_without_usersite_enabled N/A N/A self N/A N/A N/A N/A easy_install_pkg HAS_USER_SITE False N/A N/A N/A sys version 2.6 N/A N/A N/A dist N/A Distribution N/A N/A dist script_name setup.py N/A cmd N/A easy_install dist N/A N/A cmd args N/A py N/A N/A N/A cmd initialize_options N/A N/A N/A self assertFalse N/A cmd user NOT user should be implied N/A test_local_index N/A N/A self N/A N/A N/A new_location N/A N/A tempfile mkdtemp N/A target N/A N/A tempfile mkdtemp N/A egg_file N/A N/A N/A os path join new_location foo-1.0.egg-info N/A f N/A open egg_file w N/A N/A N/A N/A N/A f write Name: foo
 N/A N/A N/A N/A f close N/A N/A N/A N/A sys path append target N/A old_ppath N/A N/A N/A os environ get PYTHONPATH N/A N/A N/A os environ N/A PYTHONPATH N/A N/A N/A N/A os path pathsep join N/A sys path N/A N/A N/A dist N/A Distribution N/A N/A dist script_name setup.py N/A cmd N/A easy_install dist N/A N/A cmd install_dir target N/A N/A cmd args N/A foo N/A N/A N/A cmd ensure_finalized N/A N/A N/A N/A cmd local_index scan N/A new_location N/A res N/A N/A cmd easy_install foo N/A N/A N/A self assertEqual N/A N/A N/A os path realpath N/A res location N/A N/A N/A os path realpath new_location N/A N/A N/A N/A N/A sys path remove target N/A basedir N/A new_location target N/A N/A N/A N/A N/A N/A N/A os path exists basedir N/A N/A N/A N/A os path isdir basedir N/A N/A N/A N/A N/A N/A N/A shutil rmtree basedir N/A N/A N/A N/A N/A N/A old_ppath None N/A N/A N/A N/A os environ N/A PYTHONPATH old_ppath N/A N/A N/A N/A os environ N/A PYTHONPATH N/A test_setup_requires N/A N/A self N/A N/A N/A Regression test for issue #318

        Ensures that a package with setup_requires can be installed when
        distribute is installed in the user site-packages without causing a
        SandboxViolation.
         N/A test_setup_attrs N/A name version setup_requires dependency_links test_pkg 0.0 N/A foobar N/A N/A N/A N/A os path abspath N/A self dir N/A test_pkg N/A N/A N/A os path join N/A self dir test_pkg N/A test_setup_py N/A N/A N/A os path join test_pkg setup.py N/A test_setup_cfg N/A N/A N/A os path join test_pkg setup.cfg N/A N/A N/A os mkdir test_pkg N/A f N/A open test_setup_py w N/A N/A N/A f write N/A N/A textwrap dedent N/A             import setuptools
            setuptools.setup(**%r)
         test_setup_attrs N/A N/A N/A f close N/A foobar_path N/A N/A N/A os path join N/A self dir foobar-0.1.tar.gz N/A N/A make_trivial_sdist foobar_path N/A N/A textwrap dedent                 import setuptools
                setuptools.setup(
                    name='foobar',
                    version='0.1'
                )
             N/A old_stdout N/A sys stdout N/A old_stderr N/A sys stderr N/A N/A sys stdout N/A N/A StringIO StringIO N/A N/A sys stderr N/A N/A StringIO StringIO N/A N/A N/A N/A N/A N/A reset_setup_stop_context N/A N/A N/A N/A N/A run_setup test_setup_py N/A install N/A N/A N/A SandboxViolation N/A N/A N/A N/A self fail Installation caused SandboxViolation N/A N/A N/A sys stdout old_stdout N/A N/A sys stderr old_stderr N/A N/A TestSetupRequires N/A N/A unittest TestCase N/A test_setup_requires_honors_fetch_params N/A N/A self N/A N/A N/A 
        When easy_install installs a source distribution which specifies
        setup_requires, it should honor the fetch parameters (such as
        allow-hosts, index-url, and find-links).
         N/A p_index N/A N/A N/A N/A setuptools tests server MockServer N/A N/A N/A p_index start N/A netloc 1 N/A p_index_loc N/A N/A N/A urlparse urlparse N/A p_index url N/A netloc N/A N/A N/A p_index_loc endswith :0 N/A N/A install N/A N/A dist_file N/A N/A install_at N/A N/A temp_install_dir N/A N/A install_env N/A N/A N/A N/A N/A ei_params N/A --index-url N/A p_index url --allow-hosts p_index_loc --exclude-scripts --install-dir temp_install_dir dist_file install_clean_reset N/A N/A N/A N/A install_clean_argv N/A N/A N/A N/A N/A N/A N/A self assertRaises SystemExit N/A easy_install_pkg main ei_params N/A N/A N/A argv_context install_clean_argv N/A easy_install N/A N/A N/A reset_setup_stop_context install_clean_reset N/A N/A N/A environment_context install_env PYTHONPATH temp_install_dir N/A N/A N/A tempdir_context install_at N/A N/A N/A N/A self create_sdist install N/A N/A N/A self assertTrue N/A 2 N/A len N/A p_index requests 3 N/A N/A N/A self assertEqual N/A N/A N/A p_index requests N/A 0 path /does-not-exist/ N/A create_sdist N/A N/A self installer N/A N/A N/A 
        Create an sdist with a setup_requires dependency (of something that
        doesn't exist) and invoke installer on it.
         build_sdist N/A N/A dir N/A N/A N/A dist_path N/A N/A N/A os path join dir distribute-test-fetcher-1.0.tar.gz N/A N/A make_trivial_sdist dist_path N/A N/A N/A N/A textwrap dedent 
                    import setuptools
                    setuptools.setup(
                        name="distribute-test-fetcher",
                        version="1.0",
                        setup_requires = ['does-not-exist'],
                    )
                 lstrip N/A N/A installer dist_path N/A N/A N/A tempdir_context build_sdist N/A N/A make_trivial_sdist N/A N/A dist_path setup_py N/A N/A N/A Create a simple sdist tarball at dist_path, containing just a
    setup.py, the contents of which are provided by the setup_py string.
     N/A setup_py_file N/A N/A tarfile TarInfo name setup.py N/A N/A N/A MemFile N/A StringIO BytesIO N/A N/A N/A AttributeError N/A N/A MemFile N/A StringIO StringIO N/A setup_py_bytes N/A MemFile N/A N/A setup_py encode utf-8 N/A N/A setup_py_file size N/A len N/A N/A setup_py_bytes getvalue N/A dist N/A N/A tarfile open dist_path w:gz N/A N/A N/A N/A N/A dist addfile setup_py_file fileobj setup_py_bytes N/A N/A N/A N/A dist close N/A tempdir_context N/A N/A f cd N/A N/A N/A N/A dir N/A None N/A N/A 
    Invoke f in the context
     N/A temp_dir N/A N/A tempfile mkdtemp N/A orig_dir N/A N/A os getcwd N/A N/A N/A N/A cd temp_dir N/A N/A f temp_dir N/A N/A N/A cd orig_dir N/A N/A N/A shutil rmtree temp_dir N/A environment_context N/A N/A f N/A updates N/A N/A 
    Invoke f in the context
     N/A old_env N/A N/A N/A os environ copy N/A N/A N/A N/A os environ update updates N/A N/A N/A N/A f N/A N/A key updates N/A N/A N/A N/A os environ N/A key N/A N/A N/A N/A os environ update old_env N/A argv_context N/A N/A f repl N/A N/A N/A 
    Invoke f in the context
     N/A old_argv N/A N/A sys argv N/A N/A N/A N/A sys argv N/A repl N/A N/A N/A N/A f N/A N/A N/A N/A sys argv N/A old_argv N/A reset_setup_stop_context N/A N/A f N/A N/A N/A 
    When the distribute tests are run using setup.py test, and then
    one wants to invoke another setup() command (such as easy_install)
    within those tests, it's necessary to reset the global variable
    in distutils.core so that the setup() command will run naturally.
     N/A setup_stop_after N/A N/A distutils core _setup_stop_after N/A N/A N/A distutils core _setup_stop_after None N/A N/A N/A N/A f N/A N/A N/A N/A distutils core _setup_stop_after setup_stop_after N/A