创建一个完整的自包含virtualenv引导文件
bootstrap-env的Python项目详细描述
引导环境
创建完整的自包含virtualenv引导文件的实验项目。
见:packaging-problems issues 55
叉子和贡献!;)
兼容的python版本(另请参见.travis.yml):
- 3.5、3.6
- pypy(python v2和v3)
状态
1.0版是重写版,现在还不能使用!
引导引导程序env-linux
# Download bootstrap file from github: /home/FooBar$ wget https://github.com/jedie/bootstrap_env/raw/master/bootstrap_env/boot_bootstrap_env.py # Create virtualenv with all needed packages: /home/FooBar$ python3 boot_bootstrap_env.py boot ~/Bootstrap-env
引导引导程序环境-Windows
- 安装python 3:https://www.python.org/downloads/
- 从github下载引导文件:boot_bootstrap_env.py(右键单击并选择“保存”)
- 启动boot_bootstrap_env.py并例如:
boot_bootstrap_env.py shell v1.0.0rc11 Type help or ? to list commands. boot_bootstrap_env.py> boot ~/Bootstrap-Env ... virtualenv created at: 'C:\Users\<YourUserName>\Bootstrap-Env'
用法:
- 打开cmd.exe,例如:
C:\> cd /d %USERPROFILE% C:\Users\foobar>cd Bootstrap-Env C:\Users\foobar\Bootstrap-Env>cd Scripts C:\Users\foobar\Bootstrap-Env\Scripts>call activate.bat (Bootstrap-Env) C:\Users\foobar\Bootstrap-Env\Scripts> bootstrap_env_admin.py Activated virtualenv detected: 'c:\\users\\foobar\\bootstrap-env' (c:\users\foobar\bootstrap-env\scripts\python.exe) bootstrap_env_admin.py shell v0.1.0 Type help or ? to list commands. bootstrap_env_admin.py> ? Hint: All commands can be called directly from commandline. e.g.: $ ./bootstrap_env_admin.py help Available commands (type help <topic>): change_editable_address - Replace git remote url from github read-only 'https' to 'git@' help - List available commands with "help" or detailed help with "help cmd". pip_freeze - Just run 'pip freeze' pytest - Run tests via pytest quit - Exit this interactiv shell update_env - Update all packages in virtualenv. upgrade_requirements - 1. Convert via 'pip-compile' *.in requirements files to *.txt
工作原理
bootstrap项目
引导程序的工作方式如下:
- 创建virtualenv
- pip安装<;项目>;
- <;project>;_admin update_env
向后不兼容的更改
v0.6.4->;v1.0.0
v1是完全重写的
相容矩阵
bootstrap_env | Python |
---|---|
>=v1.0 | 3.5, 3.6, PyPy3 |
<=v0.6 | 2.7, 3.4, 3.5, PyPy (Python v2 and v3) |
另请参见中的组合:
历史记录
compare v1.0.1…v1.0.2-2019年1月8日:
- little change in appearance
compare v0.6.4…v1.0.1-2019年1月8日:
- rewrite based on “PyLucid v3 boot” sources (by Jens Diemer)
v0.6.4-2016年11月30日:
- Note: This pip version doesn’t support pypy3. See notes above
- Update to get-pip v9.0.1
v0.6.3-2016年9月12日:
- update for virtualenv v15.0.3
v0.6.2-2016年7月20日:
- Update to get-pip v8.1.2
v0.6.1-04.04.2016:
- Update to get-pip from 5.Mar.2016
v0.6.0-2015年12月26日:
- Remove old v0.4 API warnings
v0.5.4-2015年7月26日:
- Bugfix for PyPy2 under Windows by a more flexible solution to find ‘bin’ and executeables.
v0.5.3-24.07.2015-更新到pip 7.1.2
v0.5.2-24.07.2015-生成add_extend_解析器,add_adjust_options和add_after_install可选的generate_bootstrap()
v0.5.1-18.07.2015-更新到pip 7.1.0
v0.5.0-05.06.2015-添加unittests,重构源代码布局。(请注意上面的“向后不兼容更改!”)
V0.4.6-03.06.2015-更新至PIP 7.0.3
v0.4.5-26.05.2015-更新到pip 7.0.1,在生成的引导文件注释中剪切文件路径
V0.4.4-14.04.2015-更新到PIP 6.1.1(也可以作为带轮子的V0.4.4再次上载)
V0.4.2-07.02.2015-更新至PIP 6.0.8
V0.4.1-29.01.2015-更新PIP 6.0.7和PIN请求的URL。
V0.4.0-28.01.2015-PIP 6.0.6更改的更新
v0.3.5-28.01.2015-为get-pip.pyv6.0.6更新sha256
v0.3.3-14.11.2014-将版本号添加到生成的引导文件中。
v0.3.2-14.11.2014-添加“boot bootstrap_env”和在Windows下运行的错误修复程序。
v0.3.1-2014年11月14日-在PIP安装时,如果使用了自己的可选选项,则修复“错误:没有此类选项:”的错误。
v0.3.0-13.11.2014-键入:将所有bootstrip重命名为bootstrap;)
v0.2.0-09.10.2014-将prefix和suffix参数添加到generate_bootstrap()
v0.1.0-2014年10月9日-初始版本