def setup(self, setup_command, script_name=''):
with self.paths_set():
with SetupMonitor() as monitor:
distribution = setup(script_name=script_name,
script_args=setup_command,
name=ascii_as_bytes_or_str(self.project_name),
version=self.version_for_setup(),
description=self.get_description_for(self),
long_description=self.get_long_description_for(self),
url=self.get_url_for(self),
maintainer=self.maintainer_name,
maintainer_email=self.maintainer_email,
packages=self.packages_for_setup(),
py_modules=self.py_modules_for_setup(),
include_package_data=self.include_package_data,
package_data=self.package_data_for_setup(),
namespace_packages=self.namespace_packages_for_setup(),
install_requires=self.run_deps_for_setup(),
setup_requires=self.build_deps_for_setup(),
tests_require=self.test_deps_for_setup(),
test_suite=self.test_suite_for_setup(),
entry_points=self.entry_points_for_setup(),
extras_require=self.extras_require_for_setup() )
monitor.check_command_status(distribution.commands)
评论列表
文章目录