【实例简介】
1、python 的一些支持包采用的是pip工具安装的;
2、pip工具类似centos中的 yum;
3、pip工具的安装时需要先安装setuptools工具;
4、这便是setuptools的安装包!
【实例截图】
【核心代码】
setuptools-21.0.0
└── setuptools-21.0.0
├── bootstrap.py
├── conftest.py
├── docs
│ ├── conf.py
│ ├── developer-guide.txt
│ ├── development.txt
│ ├── easy_install.txt
│ ├── formats.txt
│ ├── history.txt
│ ├── index.txt
│ ├── Makefile
│ ├── pkg_resources.txt
│ ├── python3.txt
│ ├── releases.txt
│ ├── roadmap.txt
│ ├── setuptools.txt
│ ├── _templates
│ │ └── indexsidebar.html
│ └── _theme
│ └── nature
│ ├── static
│ │ ├── nature.css_t
│ │ └── pygments.css
│ └── theme.conf
├── easy_install.py
├── launcher.c
├── MANIFEST.in
├── msvc-build-launcher.cmd
├── pavement.py
├── PKG-INFO
├── pkg_resources
│ ├── api_tests.txt
│ ├── extern
│ │ └── __init__.py
│ ├── __init__.py
│ ├── tests
│ │ ├── __init__.py
│ │ ├── test_markers.py
│ │ ├── test_pkg_resources.py
│ │ └── test_resources.py
│ └── _vendor
│ ├── __init__.py
│ ├── packaging
│ │ ├── __about__.py
│ │ ├── _compat.py
│ │ ├── __init__.py
│ │ ├── markers.py
│ │ ├── requirements.py
│ │ ├── specifiers.py
│ │ ├── _structures.py
│ │ ├── utils.py
│ │ └── version.py
│ ├── pyparsing.py
│ ├── six.py
│ └── vendored.txt
├── pytest.ini
├── README.rst
├── setup.cfg
├── setup.py
├── setuptools
│ ├── archive_util.py
│ ├── cli-32.exe
│ ├── cli-64.exe
│ ├── cli-arm-32.exe
│ ├── cli.exe
│ ├── command
│ │ ├── alias.py
│ │ ├── bdist_egg.py
│ │ ├── bdist_rpm.py
│ │ ├── bdist_wininst.py
│ │ ├── build_ext.py
│ │ ├── build_py.py
│ │ ├── develop.py
│ │ ├── easy_install.py
│ │ ├── egg_info.py
│ │ ├── __init__.py
│ │ ├── install_egg_info.py
│ │ ├── install_lib.py
│ │ ├── install.py
│ │ ├── install_scripts.py
│ │ ├── launcher manifest.xml
│ │ ├── register.py
│ │ ├── rotate.py
│ │ ├── saveopts.py
│ │ ├── sdist.py
│ │ ├── setopt.py
│ │ ├── test.py
│ │ ├── upload_docs.py
│ │ └── upload.py
│ ├── depends.py
│ ├── dist.py
│ ├── extension.py
│ ├── extern
│ │ └── __init__.py
│ ├── gui-32.exe
│ ├── gui-64.exe
│ ├── gui-arm-32.exe
│ ├── gui.exe
│ ├── __init__.py
│ ├── launch.py
│ ├── lib2to3_ex.py
│ ├── msvc9_support.py
│ ├── package_index.py
│ ├── py26compat.py
│ ├── py27compat.py
│ ├── py31compat.py
│ ├── sandbox.py
│ ├── script (dev).tmpl
│ ├── script.tmpl
│ ├── site-patch.py
│ ├── ssl_support.py
│ ├── tests
│ │ ├── contexts.py
│ │ ├── environment.py
│ │ ├── files.py
│ │ ├── fixtures.py
│ │ ├── indexes
│ │ │ └── test_links_priority
│ │ │ ├── external.html
│ │ │ └── simple
│ │ │ └── foobar
│ │ │ └── index.html
│ │ ├── __init__.py
│ │ ├── py26compat.py
│ │ ├── script-with-bom.py
│ │ ├── server.py
│ │ ├── test_bdist_egg.py
│ │ ├── test_build_ext.py
│ │ ├── test_develop.py
│ │ ├── test_dist_info.py
│ │ ├── test_easy_install.py
│ │ ├── test_egg_info.py
│ │ ├── test_find_packages.py
│ │ ├── test_integration.py
│ │ ├── test_msvc9compiler.py
│ │ ├── test_packageindex.py
│ │ ├── test_sandbox.py
│ │ ├── test_sdist.py
│ │ ├── test_setuptools.py
│ │ ├── test_test.py
│ │ ├── test_unicode_utils.py
│ │ ├── test_upload_docs.py
│ │ ├── test_windows_wrappers.py
│ │ └── textwrap.py
│ ├── unicode_utils.py
│ ├── utils.py
│ ├── version.py
│ └── windows_support.py
├── setuptools.egg-info
│ ├── dependency_links.txt
│ ├── entry_points.txt
│ ├── PKG-INFO
│ ├── requires.txt
│ ├── SOURCES.txt
│ ├── top_level.txt
│ └── zip-safe
└── tests
└── manual_test.py
21 directories, 138 files