当前位置: 首页>>代码示例>>Python>>正文


Python PythonPackage.extra_options方法代码示例

本文整理汇总了Python中easybuild.easyblocks.generic.pythonpackage.PythonPackage.extra_options方法的典型用法代码示例。如果您正苦于以下问题:Python PythonPackage.extra_options方法的具体用法?Python PythonPackage.extra_options怎么用?Python PythonPackage.extra_options使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在easybuild.easyblocks.generic.pythonpackage.PythonPackage的用法示例。


在下文中一共展示了PythonPackage.extra_options方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from easybuild.easyblocks.generic.pythonpackage import PythonPackage [as 别名]
# 或者: from easybuild.easyblocks.generic.pythonpackage.PythonPackage import extra_options [as 别名]
    def __init__(self, *args, **kwargs):
        """Initialize PythonBundle easyblock."""
        super(PythonBundle, self).__init__(*args, **kwargs)

        self.cfg['exts_defaultclass'] = 'PythonPackage'

        # need to disable templating to ensure that actual value for exts_default_options is updated...
        prev_enable_templating = self.cfg.enable_templating
        self.cfg.enable_templating = False

        # set default options for extensions according to relevant top-level easyconfig parameters
        pypkg_keys = PythonPackage.extra_options().keys()
        for key in pypkg_keys:
            if key not in self.cfg['exts_default_options']:
                self.cfg['exts_default_options'][key] = self.cfg[key]

        self.cfg['exts_default_options']['download_dep_fail'] = True
        self.log.info("Detection of downloaded extension dependencies is enabled")

        self.cfg.enable_templating = prev_enable_templating

        self.log.info("exts_default_options: %s", self.cfg['exts_default_options'])

        self.pylibdir = None

        # figure out whether this bundle of Python packages is being installed for multiple Python versions
        self.multi_python = 'Python' in self.cfg['multi_deps']
开发者ID:hpcugent,项目名称:easybuild-easyblocks,代码行数:29,代码来源:pythonbundle.py

示例2: extra_options

# 需要导入模块: from easybuild.easyblocks.generic.pythonpackage import PythonPackage [as 别名]
# 或者: from easybuild.easyblocks.generic.pythonpackage.PythonPackage import extra_options [as 别名]
 def extra_options(extra_vars=None):
     """Easyconfig parameters specific to bundles of Python packages."""
     if extra_vars is None:
         extra_vars = {}
     # combine custom easyconfig parameters of Bundle & PythonPackage
     extra_vars = Bundle.extra_options(extra_vars)
     return PythonPackage.extra_options(extra_vars)
开发者ID:hpcugent,项目名称:easybuild-easyblocks,代码行数:9,代码来源:pythonbundle.py

示例3: extra_options

# 需要导入模块: from easybuild.easyblocks.generic.pythonpackage import PythonPackage [as 别名]
# 或者: from easybuild.easyblocks.generic.pythonpackage.PythonPackage import extra_options [as 别名]
    def extra_options():
        """Define custom easyconfig parameters for TensorRT."""

        # Combine extra variables from Binary and PythonPackage easyblocks
        extra_vars = Binary.extra_options()
        extra_vars = PythonPackage.extra_options(extra_vars)
        return EasyBlock.extra_options(extra_vars)
开发者ID:hpcugent,项目名称:easybuild-easyblocks,代码行数:9,代码来源:tensorrt.py

示例4: extra_options

# 需要导入模块: from easybuild.easyblocks.generic.pythonpackage import PythonPackage [as 别名]
# 或者: from easybuild.easyblocks.generic.pythonpackage.PythonPackage import extra_options [as 别名]
 def extra_options():
     extra_vars = {
         # see https://developer.nvidia.com/cuda-gpus
         'cuda_compute_capabilities': [[], "List of CUDA compute capabilities to build with", CUSTOM],
         'with_jemalloc': [True, "Make TensorFlow use jemalloc", CUSTOM],
         'with_mkl_dnn': [None, "Make TensorFlow use Intel MKL-DNN (enabled unless cuDNN is used)", CUSTOM],
     }
     return PythonPackage.extra_options(extra_vars)
开发者ID:boegel,项目名称:easybuild-easyblocks,代码行数:10,代码来源:tensorflow.py

示例5: extra_options

# 需要导入模块: from easybuild.easyblocks.generic.pythonpackage import PythonPackage [as 别名]
# 或者: from easybuild.easyblocks.generic.pythonpackage.PythonPackage import extra_options [as 别名]
 def extra_options():
     extra_vars = {
         # see https://developer.nvidia.com/cuda-gpus
         'cuda_compute_capabilities': [[], "List of CUDA compute capabilities to build with", CUSTOM],
         'path_filter': [[], "List of patterns to be filtered out in paths in $CPATH and $LIBRARY_PATH", CUSTOM],
         'with_jemalloc': [None, "Make TensorFlow use jemalloc (usually enabled by default)", CUSTOM],
         'with_mkl_dnn': [None, "Make TensorFlow use Intel MKL-DNN (enabled unless cuDNN is used)", CUSTOM],
     }
     return PythonPackage.extra_options(extra_vars)
开发者ID:Gregor-Mendel-Institute,项目名称:easybuild-easyblocks,代码行数:11,代码来源:tensorflow.py

示例6: extra_options

# 需要导入模块: from easybuild.easyblocks.generic.pythonpackage import PythonPackage [as 别名]
# 或者: from easybuild.easyblocks.generic.pythonpackage.PythonPackage import extra_options [as 别名]
 def extra_options():
     """Extra easyconfig parameters for Python packages being installed with python configure/make/make install."""
     extra = PythonPackage.extra_options()
     return ConfigureMake.extra_options(extra_vars=extra)
开发者ID:dlagrava,项目名称:easybuild-easyblocks,代码行数:6,代码来源:configuremakepythonpackage.py

示例7: extra_options

# 需要导入模块: from easybuild.easyblocks.generic.pythonpackage import PythonPackage [as 别名]
# 或者: from easybuild.easyblocks.generic.pythonpackage.PythonPackage import extra_options [as 别名]
 def extra_options(extra_vars=None):
     """Easyconfig parameters specific to libxml2."""
     extra_vars = ConfigureMake.extra_options()
     return PythonPackage.extra_options(extra_vars=extra_vars)
开发者ID:ULHPC,项目名称:easybuild-easyblocks,代码行数:6,代码来源:libxml2.py

示例8: extra_options

# 需要导入模块: from easybuild.easyblocks.generic.pythonpackage import PythonPackage [as 别名]
# 或者: from easybuild.easyblocks.generic.pythonpackage.PythonPackage import extra_options [as 别名]
 def extra_options(extra_vars=None):
     """Easyconfig parameters specific to Python packages thar are configured/built/installed via CMake"""
     extra_vars = PythonPackage.extra_options(extra_vars=extra_vars)
     return CMakeMake.extra_options(extra_vars=extra_vars)
开发者ID:FredHutch,项目名称:easybuild-easyblocks,代码行数:6,代码来源:cmakepythonpackage.py


注:本文中的easybuild.easyblocks.generic.pythonpackage.PythonPackage.extra_options方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。