python类finalize_options()的实例源码

setup.py 文件源码 项目:constantina 作者: wwoast 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
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)
setup.py 文件源码 项目:eSSP 作者: Minege 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def finalize_options(self):
        install.finalize_options(self)
        self.set_undefined_options('build', ('build_scripts', 'build_scripts'))
setup.py 文件源码 项目:tensorboard 作者: dmlc 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def finalize_options(self):
    ret = InstallCommandBase.finalize_options(self)
    self.install_headers = os.path.join(self.install_purelib,
                                        'tensorflow', 'include')
    return ret
setup.py 文件源码 项目:tensorboard 作者: dmlc 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def finalize_options(self):
    self.set_undefined_options('install',
                               ('install_headers', 'install_dir'),
                               ('force', 'force'))
setup.py 文件源码 项目:fold 作者: tensorflow 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def finalize_options(self):
    ret = InstallCommandBase.finalize_options(self)
    self.install_headers = os.path.join(self.install_purelib,
                                        'tensorflow_fold', 'include')
    return ret
setup.py 文件源码 项目:fold 作者: tensorflow 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def finalize_options(self):
    self.set_undefined_options('install',
                               ('install_headers', 'install_dir'),
                               ('force', 'force'))
setup.py 文件源码 项目:lsdc 作者: febert 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def finalize_options(self):
    ret = InstallCommandBase.finalize_options(self)
    self.install_headers = os.path.join(self.install_purelib,
                                        'tensorflow', 'include')
    return ret
setup.py 文件源码 项目:lsdc 作者: febert 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def finalize_options(self):
    self.set_undefined_options('install',
                               ('install_headers', 'install_dir'),
                               ('force', 'force'))
setup.py 文件源码 项目:lsdc 作者: febert 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def finalize_options(self):
    ret = InstallCommandBase.finalize_options(self)
    self.install_headers = os.path.join(self.install_purelib,
                                        'tensorflow', 'include')
    return ret
setup.py 文件源码 项目:lsdc 作者: febert 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def finalize_options(self):
    self.set_undefined_options('install',
                               ('install_headers', 'install_dir'),
                               ('force', 'force'))
setup.py 文件源码 项目:constantina 作者: wwoast 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
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'
setup.py 文件源码 项目:numpythia 作者: scikit-hep 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
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())
setup.py 文件源码 项目:numpythia 作者: scikit-hep 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
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.
setup.py 文件源码 项目:PyBloqs 作者: manahl 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
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]
setup.py 文件源码 项目:PyBloqs 作者: manahl 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def finalize_options(self):
        assert self.wkhtmltopdf is not None, "Please provide --wkhtmltopdf parameter"
        self.ensure_string("wkhtmltopdf")
setup.py 文件源码 项目:PyBloqs 作者: manahl 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
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]
setup.py 文件源码 项目:PyBloqs 作者: manahl 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True
setup.py 文件源码 项目:DeepLearning_VirtualReality_BigData_Project 作者: rashmitripathi 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def finalize_options(self):
    ret = InstallCommandBase.finalize_options(self)
    self.install_headers = os.path.join(self.install_purelib,
                                        'tensorflow', 'include')
    return ret
setup.py 文件源码 项目:DeepLearning_VirtualReality_BigData_Project 作者: rashmitripathi 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def finalize_options(self):
    self.set_undefined_options('install',
                               ('install_headers', 'install_dir'),
                               ('force', 'force'))


问题


面经


文章

微信
公众号

扫码关注公众号