我们从Python开源项目中,提取了以下19个代码示例,用于说明如何使用setuptools.command.install.install.finalize_options()。
def finalize_options(self): """ Look for unacceptable inputs, and where they exist, default to reasonable standard values. Assume that no configuration exists prior to your running this command. """ assert (isinstance(self.instance, str) and len(self.instance) > 0 and len(self.instance) < 32), 'Invalid instance name' assert getpwnam(self.username), 'User name not found' assert getgrnam(self.groupname), 'Group name not found' assert isinstance(self.hostname, str), 'Invalid hostname' assert (int(self.port) < 65536) and (int(self.port) > 1024), 'Invalid or privileged port given' assert isinstance(self.data_root, str), 'Invalid data_root directory' assert isinstance(self.config_root, str), 'Invalid config directory' assert isinstance(self.cgi_bin, str), 'Invalid cgi-bin directory' install.finalize_options(self)
def finalize_options(self): install.finalize_options(self) self.set_undefined_options('build', ('build_scripts', 'build_scripts'))
def finalize_options(self): ret = InstallCommandBase.finalize_options(self) self.install_headers = os.path.join(self.install_purelib, 'tensorflow', 'include') return ret
def finalize_options(self): self.set_undefined_options('install', ('install_headers', 'install_dir'), ('force', 'force'))
def finalize_options(self): ret = InstallCommandBase.finalize_options(self) self.install_headers = os.path.join(self.install_purelib, 'tensorflow_fold', 'include') return ret
def finalize_options(self): """Look for unacceptable inputs""" assert (isinstance(self.instance, str) and len(self.instance) > 0 and len(self.instance) < 32), 'Invalid instance name' assert getpwnam(self.username), 'User name not found' assert getgrnam(self.groupname), 'Group name not found' assert isinstance(self.hostname, str), 'Invalid hostname' assert (int(self.port) < 65536) and (int(self.port) > 1024), 'Invalid or privileged port given' assert isinstance(self.data_root, str), 'Invalid data_root directory' assert isinstance(self.config_root, str), 'Invalid config directory' assert isinstance(self.cgi_bin, str), 'Invalid cgi-bin directory'
def finalize_options(self): global libnumpythia #global external_fastjet _build_ext.finalize_options(self) # Prevent numpy from thinking it is still in its setup process try: del builtins.__NUMPY_SETUP__ except AttributeError: pass import numpy libnumpythia.include_dirs.append(numpy.get_include())
def finalize_options(self): global external_fastjet if self.external_fastjet: external_fastjet = True _install.finalize_options(self) # Only add numpy to *_requires lists if not already installed to prevent # pip from trying to upgrade an existing numpy and failing.
def finalize_options(self): assert self.highcharts is not None, "Please provide --highcharts parameter" self.ensure_string_list("highcharts") self.highcharts = [os.path.abspath(os.path.expanduser(p)) for p in self.highcharts]
def finalize_options(self): assert self.wkhtmltopdf is not None, "Please provide --wkhtmltopdf parameter" self.ensure_string("wkhtmltopdf")
def finalize_options(self): install.finalize_options(self) self.ensure_string_list("highcharts") if self.highcharts is not None: self.highcharts = [os.path.abspath(os.path.expanduser(p)) for p in self.highcharts]
def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True