用于自动安装python包的包加载器。
autoinstall的Python项目详细描述
用于自动安装python包的包加载程序。
本着零安装精神的包加载程序,可用于将依赖项注入导入过程。
要安装:
请参见下面的内容。
使用::
pymarc.\uu文件
changelog::
-增加了对非顶级包的支持。
-缓存文件现在使用来自url的文件名部分。
-应用了来自eric seidel<;eseidel@google.com>的修补程序;添加对加载模块的支持,其中模块不在.zip
文件的根目录下。
-对预期用例的描述
-解决在http://mail.python.org/pipermail/python dev/2008年3月/077926.html中指出的其他问题:
pull vs.push
user vs.系统
web vs.文件系统
auto vs.手动
管理开发沙盒
可选接口…
def get_data(pathname)->;带文件数据的字符串。
返回与“pathname”关联的数据。如果找不到文件,则引发ioerror。”);
“是包(全名)->;bool.
返回指定模块的代码对象。raise zipimporterror
是找不到模块。”);
def get_source,
“get_source(全名)->;源字符串。
返回指定模块的源代码。raise zipimporterror
是找不到模块,如果存档文件包含模块,但没有它的源,则返回none。”);
autoinstall也可以使用新的包加载程序引导。例如::
或通过引导加载程序。
=(版本:
引发importorror(“找到的版本与预期不同。”)
除了importorror,e:
http://svn.python.org/projects/sandbox/trunk/bootstrap/bootstrap.py
import bootstrap
pypi=“http://pypi.python.org”
dir=“packages/source/a/autoinstall”
url=“%s/%s/autoinstall-%s.tar.gz”%(pypi,dir,_version)
bootstrap.main((url,))
import autoinstall
references::
http://0install.net/
http://www.python.org/dev/peps/pep-0302/
http://svn.python.org/projects/sandbox/trunk/import\u in_py
http://0install.net/injector find.html
http://roscidus.com/desktop/node/903
本着零安装精神的包加载程序,可用于将依赖项注入导入过程。
要安装:
请参见下面的内容。
使用::
pymarc.\uu文件
changelog::
-增加了对非顶级包的支持。
-缓存文件现在使用来自url的文件名部分。
-应用了来自eric seidel<;eseidel@google.com>的修补程序;添加对加载模块的支持,其中模块不在.zip
文件的根目录下。
-对预期用例的描述
-解决在http://mail.python.org/pipermail/python dev/2008年3月/077926.html中指出的其他问题:
pull vs.push
user vs.系统
web vs.文件系统
auto vs.手动
管理开发沙盒
可选接口…
def get_data(pathname)->;带文件数据的字符串。
返回与“pathname”关联的数据。如果找不到文件,则引发ioerror。”);
返回指定模块的代码对象。raise zipimporterror
是找不到模块。”);
def get_source,
“get_source(全名)->;源字符串。
返回指定模块的源代码。raise zipimporterror
是找不到模块,如果存档文件包含模块,但没有它的源,则返回none。”);
autoinstall也可以使用新的包加载程序引导。例如::
或通过引导加载程序。
=(版本:
引发importorror(“找到的版本与预期不同。”)
除了importorror,e:
http://svn.python.org/projects/sandbox/trunk/bootstrap/bootstrap.py
import bootstrap
pypi=“http://pypi.python.org”
dir=“packages/source/a/autoinstall”
url=“%s/%s/autoinstall-%s.tar.gz”%(pypi,dir,_version)
bootstrap.main((url,))
import autoinstall
references::
http://0install.net/
http://www.python.org/dev/peps/pep-0302/
http://svn.python.org/projects/sandbox/trunk/import\u in_py
http://0install.net/injector find.html
http://roscidus.com/desktop/node/903