-
大小: 748KB文件类型: .gz金币: 1下载: 0 次发布日期: 2021-06-10
- 语言: 其他
- 标签: setuptools pip python
资源简介
setuptools-40.4.3.tar.gz源码 安装pip3所需 安装pip3所需
代码片段和文件信息
“““
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.
“““
from __future__ import unicode_literals
import os
import sys
import textwrap
import subprocess
import io
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(‘setuptools.egg-info‘):
return
print(“adding minimal entry_points“)
build_egg_info()
def build_egg_info():
“““
Build a minimal egg-info enough to invoke egg_info
“““
os.mkdir(‘setuptools.egg-info‘)
with io.open(‘setuptools.egg-info/entry_points.txt‘ ‘w‘) as ep:
ep.write(minimal_egg_info)
def run_egg_info():
cmd = [sys.executable ‘setup.py‘ ‘egg_info‘]
print(“Regenerating egg_info“)
subprocess.check_call(cmd)
print(“...and again.“)
subprocess.check_call(cmd)
def main():
ensure_egg_info()
run_egg_info()
__name__ == ‘__main__‘ and main()
- 上一篇:keymap键盘映射
- 下一篇:一级倒立摆的模糊控制
相关资源
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- Python中Numpy库最新教程
- 用python编写的移动彩信的发送程序
- Python全栈学习笔记面向对象大作业:
- python实现的ftp自动上传、下载脚本
- Python版的A*寻路算法
- VxWorks TCPIP协议栈
- 进程的管道通信编制一段程序,实现
- IronPython IDE
- pip-10.0.1.tar.gz
- Data Science from Scratch 2nd Edition
- shape_predictor_68_face_landmarks.dat.bz2 68个标
- 爬取豆瓣电影TOP250程序,包含非常详
- 中文维基百科语料库百度网盘网址.
- MSCNN_dehaze.rar
- 爬取豆瓣排行榜电影数据(含GUI界面
- 字典文本资源
- Brainfuck / OoK 解码脚本
- 案例实战信用卡欺诈检测数据集
- 招商策略_抱团启示录那些年我们一起
- Synthesis and crystal structure of tert-butyl
- sip-4.19.zip
- 12bit流水线ADC电路整体电路原理图-c
- 树莓派3b+学习使用教程
- numpy 中文学习手册
- pytorch-1.4.0-py3.7_cpu_0.tar.bz2
- 机器学习实战 高清完整版PDF
- 西门子1200与Labview通过以太网通信内含
- 泰坦尼克号0.81准确率实验报告.docx
-
abaqus sc
ripting reference manual.pdf
评论
共有 条评论