本文整理汇总了Python中setuptools.command.install.install.do_egg_install方法的典型用法代码示例。如果您正苦于以下问题:Python install.do_egg_install方法的具体用法?Python install.do_egg_install怎么用?Python install.do_egg_install使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类setuptools.command.install.install
的用法示例。
在下文中一共展示了install.do_egg_install方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import do_egg_install [as 别名]
def run(self):
if not(download_and_install_wheel()):
custom_compile(THIRD_PARTY, INTERNAL)
install_req_wheels()
open(BUILT_LOCAL, 'w+').close()
print("Running install...")
p = Process(target=install.run, args=(self,))
p.start()
p.join()
print("Done running install")
if not(download_and_install_wheel()):
print("Running egg_install...")
p = Process(target=install.do_egg_install, args=(self,))
p.start()
p.join()
install_requirements()
print("Done running egg_install")
else:
print("Skipping egg_install")
copy_custom_compile()
示例2: run
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import do_egg_install [as 别名]
def run(self):
# in this step we simply retrieve the installation path that we need to
# append to the PYTHONPATH dynamically
global install_lib
global old_install
assert(install_lib is None)
# we use the platform-dependent install path computed by setuptools
install_lib = os.path.abspath(self.install_lib)
# if a root was specified we remove it from the install path
if self.root is not None:
assert(install_lib.startswith(self.root))
install_lib = install_lib[len(self.root):]
old_install = (self.old_and_unmanageable or self.single_version_externally_managed)
# using install.run(self) causes setuptools to ignore install_requires
# for a complete explanation, refer to
# https://stackoverflow.com/questions/21915469/python-setuptools-install-requires-is-ignored-when-overriding-cmdclass
# install.run(self)
if old_install:
install.run(self)
else:
install.do_egg_install(self)
示例3: run
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import do_egg_install [as 别名]
def run(self):
if not self.large_data_dir is None:
print('Large data directory is set to: {}'.format(self.large_data_dir))
with open(os.path.expanduser('~/.dustmapsrc'), 'w') as f:
json.dump({'data_dir': self.large_data_dir}, f, indent=2)
# install.do_egg_install(self) # Due to bug in setuptools that causes old-style install
install.run(self)
示例4: do_egg_install
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import do_egg_install [as 别名]
def do_egg_install(self):
path = os.path.abspath(
os.path.join(os.path.dirname(__file__), "rekall-core", "setup.py"))
if os.access(path, os.F_OK):
print("Installing rekall-core from local directory.")
subprocess.check_call([sys.executable, "setup.py", "install"],
cwd="rekall-core")
# Need to call this directly because _install.run does crazy stack
# walking and falls back to compatibility mode.
_install.do_egg_install(self)
示例5: run
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import do_egg_install [as 别名]
def run(self):
_install.do_egg_install(self)
spacy_download_en()
_install.run(self)
示例6: run
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import do_egg_install [as 别名]
def run(self):
home_dir = os.path.expanduser('~')
deps_file = home_dir + '/.emopt_deps'
if(os.path.exists(deps_file)):
with open(deps_file, 'r') as fdeps:
for line in fdeps:
toks = line.rstrip('\r\n').split('=')
os.environ[toks[0]] = toks[1]
else:
pass # install dependencies as needed
subprocess.call('make')
SetuptoolsInstall.do_egg_install(self)
示例7: run
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import do_egg_install [as 别名]
def run(self):
_install.do_egg_install(self)
install_prerequisites()
_install.run(self)
示例8: run
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import do_egg_install [as 别名]
def run(self):
conf_avail = False
if not os.getuid() == 0:
print(Bcolor.RED + "You must run me as root user!" + Bcolor.END)
print(Bcolor.RED + "Rerun me with sudo " + __file__ + Bcolor.END)
sys.exit(2)
_install.do_egg_install(self)
print("")
print(Bcolor.CYAN + "Welcome to the Miniprobe (Python) for PRTG installer" + Bcolor.END)
if self.file_check(self.path):
print("")
probe_config_exists = "%s" % str(raw_input(Bcolor.YELLOW + "A config file was already found. "
"Do you want to reconfigure [y/N]: "
+ Bcolor.END)).rstrip().lstrip()
if probe_config_exists.lower() == "y":
config_old = self.read_config(self.path)
self.get_config(config_old)
else:
print("")
uninstall = "%s" % str(raw_input(Bcolor.YELLOW + "Do you want to Uninstall or Restart the "
"service [u/R]: " + Bcolor.END)).rstrip().lstrip()
if uninstall.lower() == "u":
self.remove_config()
conf_avail = False
else:
conf_avail = True
else:
conf_avail = self.get_config(self.config_init)
if conf_avail:
print(subprocess.call("update-rc.d prtgprobe defaults", shell=True))
print(Bcolor.GREEN + "Starting Mini Probe" + Bcolor.END)
print(subprocess.call("/etc/init.d/prtgprobe start", shell=True))
print(Bcolor.GREEN + "Done. You now can start/stop the Mini Probe using '/etc/init.d/prtgprobe start' "
"or '/etc/init.d/prtgprobe stop'" + Bcolor.END)
else:
print("Exiting!")
sys.exit()
pass
示例9: run
# 需要导入模块: from setuptools.command.install import install [as 别名]
# 或者: from setuptools.command.install.install import do_egg_install [as 别名]
def run(self):
build_forseti_protos()
install.do_egg_install(self)