本文整理汇总了Python中webkitpy.common.system.autoinstall.AutoInstaller.install方法的典型用法代码示例。如果您正苦于以下问题:Python AutoInstaller.install方法的具体用法?Python AutoInstaller.install怎么用?Python AutoInstaller.install使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类webkitpy.common.system.autoinstall.AutoInstaller
的用法示例。
在下文中一共展示了AutoInstaller.install方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _install_buildbot
# 需要导入模块: from webkitpy.common.system.autoinstall import AutoInstaller [as 别名]
# 或者: from webkitpy.common.system.autoinstall.AutoInstaller import install [as 别名]
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
示例2: _install_pylint
# 需要导入模块: from webkitpy.common.system.autoinstall import AutoInstaller [as 别名]
# 或者: from webkitpy.common.system.autoinstall.AutoInstaller import install [as 别名]
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
示例3: _install_irc
# 需要导入模块: from webkitpy.common.system.autoinstall import AutoInstaller [as 别名]
# 或者: from webkitpy.common.system.autoinstall.AutoInstaller import install [as 别名]
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")
示例4: _install_buildbot
# 需要导入模块: from webkitpy.common.system.autoinstall import AutoInstaller [as 别名]
# 或者: from webkitpy.common.system.autoinstall.AutoInstaller import install [as 别名]
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")
示例5: _install_mechanize
# 需要导入模块: from webkitpy.common.system.autoinstall import AutoInstaller [as 别名]
# 或者: from webkitpy.common.system.autoinstall.AutoInstaller import install [as 别名]
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")
示例6: _install_pywebsocket
# 需要导入模块: from webkitpy.common.system.autoinstall import AutoInstaller [as 别名]
# 或者: from webkitpy.common.system.autoinstall.AutoInstaller import install [as 别名]
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")
示例7: _install_eliza
# 需要导入模块: from webkitpy.common.system.autoinstall import AutoInstaller [as 别名]
# 或者: from webkitpy.common.system.autoinstall.AutoInstaller import install [as 别名]
def _install_eliza(self):
installer = AutoInstaller(target_dir=_AUTOINSTALLED_DIR)
installer.install(url="http://www.adambarth.com/webkit/eliza",
target_name="eliza.py")
示例8: AutoInstaller
# 需要导入模块: from webkitpy.common.system.autoinstall import AutoInstaller [as 别名]
# 或者: from webkitpy.common.system.autoinstall.AutoInstaller import install [as 别名]
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.
irc_dir = os.path.join(autoinstalled_dir, "irc")
installer = AutoInstaller(target_dir=irc_dir)
示例9: _install_twisted
# 需要导入模块: from webkitpy.common.system.autoinstall import AutoInstaller [as 别名]
# 或者: from webkitpy.common.system.autoinstall.AutoInstaller import install [as 别名]
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")
示例10: _install_twisted
# 需要导入模块: from webkitpy.common.system.autoinstall import AutoInstaller [as 别名]
# 或者: from webkitpy.common.system.autoinstall.AutoInstaller import install [as 别名]
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")
示例11: _install
# 需要导入模块: from webkitpy.common.system.autoinstall import AutoInstaller [as 别名]
# 或者: from webkitpy.common.system.autoinstall.AutoInstaller import install [as 别名]
def _install(self, url, url_subpath):
installer = AutoInstaller(target_dir=_AUTOINSTALLED_DIR)
installer.install(url=url, url_subpath=url_subpath)
示例12: _install_coverage
# 需要导入模块: from webkitpy.common.system.autoinstall import AutoInstaller [as 别名]
# 或者: from webkitpy.common.system.autoinstall.AutoInstaller import install [as 别名]
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")
示例13: _install_twisted_15_5_0
# 需要导入模块: from webkitpy.common.system.autoinstall import AutoInstaller [as 别名]
# 或者: from webkitpy.common.system.autoinstall.AutoInstaller import install [as 别名]
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")