def run(self):
"""Install the package in install mode.
super().run() does not install dependencies when running
``python setup.py install`` (pypa/setuptools#456).
"""
if 'bdist_wheel' in sys.argv:
# do not use eggs, but wheels
super().run()
else:
# force install of deps' eggs during setup.py install
self.do_egg_install()
self.generate_file_from_template(TEMPLATE_FILES, BASE_ENV,
prefix=BASE_ENV,
syslog_args=SYSLOG_ARGS)
# data_files is not enough when installing from PyPI
for file in ETC_FILES:
shutil.copy2(file, Path(BASE_ENV) / file)
self.create_pid_folder()
评论列表
文章目录