• 大小: 0.66M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-03-26
  • 语言: 其他
  • 标签: 其他  

资源简介


1、python 的一些支持包采用的是pip工具安装的; 2、pip工具类似centos中的 yum; 3、pip工具的安装时需要先安装setuptools工具; 4、这便是setuptools的安装包!

资源截图

代码片段和文件信息

“““
If setuptools is not already installed in the environment it‘s not possible
to invoke setuptools‘ own commands. This routine will bootstrap this local
environment by creating a minimal egg-info directory and then invoking the
egg-info command to flesh out the egg-info directory.
“““

import os
import sys
import textwrap
import subprocess


minimal_egg_info = textwrap.dedent(“““
    [distutils.commands]
    egg_info = setuptools.command.egg_info:egg_info

    [distutils.setup_keywords]
    include_package_data = setuptools.dist:assert_bool
    install_requires = setuptools.dist:check_requirements
    extras_require = setuptools.dist:check_extras
    entry_points = setuptools.dist:check_entry_points

    [egg_info.writers]
    dependency_links.txt = setuptools.command.egg_info:overwrite_arg
    entry_points.txt = setuptools.command.egg_info:write_entries
    requires.txt = setuptools.command.egg_info:write_requirements
    “““)

def ensure_egg_info():
    if os.path.exists(‘setuptoo

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         398  2016-05-02 13:40  setuptools-21.0.0\MANIFEST.in
     文件        9943  2016-05-02 13:40  setuptools-21.0.0\README.rst
     文件        1593  2016-05-02 13:40  setuptools-21.0.0\bootstrap.py
     文件          45  2016-05-02 13:40  setuptools-21.0.0\conftest.py
     文件         126  2016-05-02 13:40  setuptools-21.0.0\easy_install.py
     文件       10317  2016-05-02 13:40  setuptools-21.0.0\launcher.c
     文件        2600  2016-05-02 13:40  setuptools-21.0.0\msvc-build-launcher.cmd
     文件         722  2016-05-02 13:40  setuptools-21.0.0\pavement.py
     文件         326  2016-05-02 13:40  setuptools-21.0.0\pytest.ini
     文件        6679  2016-05-02 13:40  setuptools-21.0.0\setup.py
     文件       12898  2016-05-02 13:42  setuptools-21.0.0\PKG-INFO
     文件         509  2016-05-02 13:42  setuptools-21.0.0\setup.cfg
     文件        2339  2016-05-02 13:40  setuptools-21.0.0\docs\Makefile
     文件        8412  2016-05-02 13:40  setuptools-21.0.0\docs\conf.py
     文件        4312  2016-05-02 13:40  setuptools-21.0.0\docs\developer-guide.txt
     文件        1474  2016-05-02 13:40  setuptools-21.0.0\docs\development.txt
     文件       75534  2016-05-02 13:40  setuptools-21.0.0\docs\easy_install.txt
     文件       31242  2016-05-02 13:40  setuptools-21.0.0\docs\formats.txt
     文件          81  2016-05-02 13:40  setuptools-21.0.0\docs\history.txt
     文件         537  2016-05-02 13:40  setuptools-21.0.0\docs\index.txt
     文件       94452  2016-05-02 13:40  setuptools-21.0.0\docs\pkg_resources.txt
     文件        3970  2016-05-02 13:40  setuptools-21.0.0\docs\python3.txt
     文件        2235  2016-05-02 13:40  setuptools-21.0.0\docs\releases.txt
     文件         167  2016-05-02 13:40  setuptools-21.0.0\docs\roadmap.txt
     文件      125717  2016-05-02 13:40  setuptools-21.0.0\docs\setuptools.txt
     文件         311  2016-05-02 13:40  setuptools-21.0.0\docs\_templates\indexsidebar.html
     文件          71  2016-05-02 13:40  setuptools-21.0.0\docs\_theme\nature\theme.conf
     文件        3853  2016-05-02 13:40  setuptools-21.0.0\docs\_theme\nature\static\nature.css_t
     文件        2717  2016-05-02 13:40  setuptools-21.0.0\docs\_theme\nature\static\pygments.css
     文件      101358  2016-05-02 13:40  setuptools-21.0.0\pkg_resources\__init__.py
     文件       12211  2016-05-02 13:40  setuptools-21.0.0\pkg_resources\api_tests.txt
............此处省略107个文件信息

评论

共有 条评论