本文整理汇总了Python中webkitpy.common.system.autoinstall.AutoInstaller类的典型用法代码示例。如果您正苦于以下问题:Python AutoInstaller类的具体用法?Python AutoInstaller怎么用?Python AutoInstaller使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AutoInstaller类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: _install_buildbot
def _install_buildbot(self):
# The buildbot package uses jinja2, for example, in buildbot/status/web/base.py.
# buildbot imports jinja2 directly (as though it were installed on the system),
# so the search path needs to include jinja2. We put jinja2 in
# its own directory so that we can include it in the search path
# without including other modules as a side effect.
jinja_dir = self._fs.join(_AUTOINSTALLED_DIR, "jinja2")
installer = AutoInstaller(append_to_search_path=True, target_dir=jinja_dir)
did_install_something = installer.install(
url="http://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.6.tar.gz#md5=1c49a8825c993bfdcf55bb36897d28a2",
url_subpath="Jinja2-2.6/jinja2",
)
SQLAlchemy_dir = self._fs.join(_AUTOINSTALLED_DIR, "sqlalchemy")
installer = AutoInstaller(append_to_search_path=True, target_dir=SQLAlchemy_dir)
did_install_something |= installer.install(
url="http://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-0.7.7.tar.gz#md5=ddf6df7e014cea318fa981364f3f93b9",
url_subpath="SQLAlchemy-0.7.7/lib/sqlalchemy",
)
did_install_something |= self._install(
"http://pypi.python.org/packages/source/b/buildbot/buildbot-0.8.6p1.tar.gz#md5=b6727d2810c692062c657492bcbeac6a",
"buildbot-0.8.6p1/buildbot",
)
return did_install_something
开发者ID:Happy-Ferret,项目名称:webkit.js,代码行数:25,代码来源:__init__.py
示例2: _install_pylint
def _install_pylint(self):
self._ensure_autoinstalled_dir_is_in_sys_path()
did_install_something = False
if (
not self._fs.exists(self._fs.join(_AUTOINSTALLED_DIR, "pylint"))
or not self._fs.exists(self._fs.join(_AUTOINSTALLED_DIR, "logilab/astng"))
or not self._fs.exists(self._fs.join(_AUTOINSTALLED_DIR, "logilab/common"))
):
installer = AutoInstaller(target_dir=_AUTOINSTALLED_DIR)
files_to_remove = []
if sys.platform == "win32":
files_to_remove = ["test/data/write_protected_file.txt"]
did_install_something = installer.install(
"http://pypi.python.org/packages/source/l/logilab-common/logilab-common-0.58.1.tar.gz#md5=77298ab2d8bb8b4af9219791e7cee8ce",
url_subpath="logilab-common-0.58.1",
target_name="logilab/common",
files_to_remove=files_to_remove,
)
did_install_something |= installer.install(
"http://pypi.python.org/packages/source/l/logilab-astng/logilab-astng-0.24.1.tar.gz#md5=ddaf66e4d85714d9c47a46d4bed406de",
url_subpath="logilab-astng-0.24.1",
target_name="logilab/astng",
)
did_install_something |= installer.install(
"http://pypi.python.org/packages/source/p/pylint/pylint-0.25.1.tar.gz#md5=728bbc2b339bc3749af013709a7f87a5",
url_subpath="pylint-0.25.1",
target_name="pylint",
)
return did_install_something
开发者ID:Happy-Ferret,项目名称:webkit.js,代码行数:29,代码来源:__init__.py
示例3: _install_irc
def _install_irc(self):
# Since irclib and ircbot are two top-level packages, we need to import
# them separately. We group them into an irc package for better
# organization purposes.
irc_dir = self._fs.join(_AUTOINSTALLED_DIR, "irc")
installer = AutoInstaller(target_dir=irc_dir)
installer.install(url="http://downloads.sourceforge.net/project/python-irclib/python-irclib/0.4.8/python-irclib-0.4.8.zip",
url_subpath="irclib.py")
installer.install(url="http://downloads.sourceforge.net/project/python-irclib/python-irclib/0.4.8/python-irclib-0.4.8.zip",
url_subpath="ircbot.py")
开发者ID:jboylee,项目名称:preprocessor-parser,代码行数:10,代码来源:__init__.py
示例4: _install_buildbot
def _install_buildbot(self):
# The buildbot package uses jinja2, for example, in buildbot/status/web/base.py.
# buildbot imports jinja2 directly (as though it were installed on the system),
# so the search path needs to include jinja2. We put jinja2 in
# its own directory so that we can include it in the search path
# without including other modules as a side effect.
jinja_dir = self._fs.join(_AUTOINSTALLED_DIR, "jinja2")
installer = AutoInstaller(append_to_search_path=True, target_dir=jinja_dir)
installer.install(url="http://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.6.tar.gz#md5=1c49a8825c993bfdcf55bb36897d28a2",
url_subpath="Jinja2-2.6/jinja2")
self._install("http://pypi.python.org/packages/source/b/buildbot/buildbot-0.8.4p2.tar.gz#md5=7597d945724c80c0ab476e833a1026cb", "buildbot-0.8.4p2/buildbot")
开发者ID:jboylee,项目名称:preprocessor-parser,代码行数:12,代码来源:__init__.py
示例5: _install_mechanize
def _install_mechanize(self):
# The mechanize package uses ClientForm, for example, in _html.py.
# Since mechanize imports ClientForm in the following way,
#
# > import sgmllib, ClientForm
#
# the search path needs to include ClientForm. We put ClientForm in
# its own directory so that we can include it in the search path
# without including other modules as a side effect.
clientform_dir = self._fs.join(_AUTOINSTALLED_DIR, "clientform")
installer = AutoInstaller(append_to_search_path=True, target_dir=clientform_dir)
installer.install(url="http://pypi.python.org/packages/source/C/ClientForm/ClientForm-0.2.10.zip",
url_subpath="ClientForm.py")
self._install("http://pypi.python.org/packages/source/m/mechanize/mechanize-0.2.4.zip",
"mechanize")
开发者ID:jboylee,项目名称:preprocessor-parser,代码行数:16,代码来源:__init__.py
示例6: _install_pywebsocket
def _install_pywebsocket(self):
pywebsocket_dir = self._fs.join(_AUTOINSTALLED_DIR, "pywebsocket")
installer = AutoInstaller(target_dir=pywebsocket_dir)
installer.install(url="http://pywebsocket.googlecode.com/files/mod_pywebsocket-0.6b6.tar.gz",
url_subpath="pywebsocket-0.6b6/src/mod_pywebsocket")
开发者ID:jboylee,项目名称:preprocessor-parser,代码行数:5,代码来源:__init__.py
示例7: _install_eliza
def _install_eliza(self):
installer = AutoInstaller(target_dir=_AUTOINSTALLED_DIR)
installer.install(url="http://www.adambarth.com/webkit/eliza",
target_name="eliza.py")
开发者ID:jboylee,项目名称:preprocessor-parser,代码行数:4,代码来源:__init__.py
示例8: AutoInstaller
#
# webkitpy/thirdparty/autoinstalled
thirdparty_dir = os.path.dirname(__file__)
autoinstalled_dir = os.path.join(thirdparty_dir, "autoinstalled")
# We need to download ClientForm since the mechanize package that we download
# below requires it. The mechanize package uses ClientForm, for example,
# in _html.py. Since mechanize imports ClientForm in the following way,
#
# > import sgmllib, ClientForm
#
# the search path needs to include ClientForm. We put ClientForm in
# its own directory so that we can include it in the search path without
# including other modules as a side effect.
clientform_dir = os.path.join(autoinstalled_dir, "clientform")
installer = AutoInstaller(append_to_search_path=True,
target_dir=clientform_dir)
installer.install(url="http://pypi.python.org/packages/source/C/ClientForm/ClientForm-0.2.10.zip",
url_subpath="ClientForm.py")
# The remaining packages do not need to be in the search path, so we create
# a new AutoInstaller instance that does not append to the search path.
installer = AutoInstaller(target_dir=autoinstalled_dir)
installer.install(url="http://pypi.python.org/packages/source/m/mechanize/mechanize-0.1.11.zip",
url_subpath="mechanize")
installer.install(url="http://pypi.python.org/packages/source/p/pep8/pep8-0.5.0.tar.gz#md5=512a818af9979290cd619cce8e9c2e2b",
url_subpath="pep8-0.5.0/pep8.py")
# Since irclib and ircbot are two top-level packages, we need to import
# them separately. We group them into an irc package for better
# organization purposes.
开发者ID:mikezit,项目名称:Webkit_Code,代码行数:32,代码来源:__init__.py
示例9: _install_twisted
def _install_twisted(self):
twisted_dir = self._fs.join(_AUTOINSTALLED_DIR, "twisted")
installer = AutoInstaller(prepend_to_search_path=True, target_dir=twisted_dir)
installer.install(url="https://pypi.python.org/packages/source/T/Twisted/Twisted-12.1.0.tar.bz2#md5=f396f1d6f5321e869c2f89b2196a9eb5", url_subpath="Twisted-12.1.0/twisted")
开发者ID:edcwconan,项目名称:webkit,代码行数:4,代码来源:__init__.py
示例10: _install_twisted
def _install_twisted(self):
twisted_dir = self._fs.join(_AUTOINSTALLED_DIR, "twisted")
installer = AutoInstaller(prepend_to_search_path=True, target_dir=twisted_dir)
installer.install(url="https://pypi.python.org/packages/source/T/Twisted/Twisted-12.1.0.tar.bz2#md5=f396f1d6f5321e869c2f89b2196a9eb5", url_subpath="Twisted-12.1.0/twisted")
installer.install(url="https://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.1.3.tar.gz#md5=9ae3d24c0c7415deb249dd1a132f0f79", url_subpath="zope.interface-4.1.3/src/zope")
开发者ID:Comcast,项目名称:WebKitForWayland,代码行数:5,代码来源:__init__.py
示例11: _install
def _install(self, url, url_subpath):
installer = AutoInstaller(target_dir=_AUTOINSTALLED_DIR)
installer.install(url=url, url_subpath=url_subpath)
开发者ID:jboylee,项目名称:preprocessor-parser,代码行数:3,代码来源:__init__.py
示例12: _install_coverage
def _install_coverage(self):
installer = AutoInstaller(target_dir=_AUTOINSTALLED_DIR)
installer.install(url="http://pypi.python.org/packages/source/c/coverage/coverage-3.5.1.tar.gz#md5=410d4c8155a4dab222f2bc51212d4a24", url_subpath="coverage-3.5.1/coverage")
开发者ID:Moondee,项目名称:Artemis,代码行数:3,代码来源:__init__.py
示例13: _install_twisted_15_5_0
def _install_twisted_15_5_0(self):
twisted_dir = self._fs.join(_AUTOINSTALLED_DIR, "twisted_15_5_0")
installer = AutoInstaller(prepend_to_search_path=True, target_dir=twisted_dir)
installer.install(url="https://pypi.python.org/packages/source/T/Twisted/Twisted-15.5.0.tar.bz2#md5=0831d7c90d0020062de0f7287530a285", url_subpath="Twisted-15.5.0/twisted")
installer.install(url="https://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.1.3.tar.gz#md5=9ae3d24c0c7415deb249dd1a132f0f79", url_subpath="zope.interface-4.1.3/src/zope")
开发者ID:ollie314,项目名称:webkit,代码行数:5,代码来源:__init__.py
注:本文中的webkitpy.common.system.autoinstall.AutoInstaller类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论