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


Python cmakemake.CMakeMake类代码示例

本文整理汇总了Python中easybuild.easyblocks.generic.cmakemake.CMakeMake的典型用法代码示例。如果您正苦于以下问题:Python CMakeMake类的具体用法?Python CMakeMake怎么用?Python CMakeMake使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: install_step

 def install_step(self):
     """Custom installation procedure for BamTools."""
     if LooseVersion(self.version) < LooseVersion('2.5.0'):
         self.cfg['files_to_copy'] = ['bin', 'lib', 'include', 'docs', 'LICENSE', 'README']
         MakeCp.install_step(self)
     else:
         CMakeMake.install_step(self)
开发者ID:Gregor-Mendel-Institute,项目名称:easybuild-easyblocks,代码行数:7,代码来源:bamtools.py

示例2: configure_step

    def configure_step(self):
        """Configure build: set config options and configure"""

        if LooseVersion(self.version) < LooseVersion("4.3"):
            self.cfg.update('configopts', "--enable-shared")

            if self.toolchain.options['pic']:
                self.cfg.update('configopts', '--with-pic')

#            tup = (os.getenv('FFLAGS'), os.getenv('MPICC'), os.getenv('F90'))
            tup = (os.getenv('FFLAGS'), os.getenv('CC'), os.getenv('F90'))
            self.cfg.update('configopts', 'FCFLAGS="%s" CC="%s" FC="%s"' % tup)

            # add -DgFortran to CPPFLAGS when building with GCC
            if self.toolchain.comp_family() == toolchain.GCC:  #@UndefinedVariable
                self.cfg.update('configopts', 'CPPFLAGS="%s -DgFortran"' % os.getenv('CPPFLAGS'))

            ConfigureMake.configure_step(self)

        else:
            hdf5 = get_software_root('HDF5')
            if hdf5:
                env.setvar('HDF5_ROOT', hdf5)

            CMakeMake.configure_step(self)
开发者ID:lsuhpchelp,项目名称:easybuild_smic,代码行数:25,代码来源:netcdf.py

示例3: configure_step

 def configure_step(self):
     """Custom configuration procedure for Eigen."""
     # start using CMake for Eigen 3.3.4 and newer versions
     # not done for older versions, since this implies using (a dummy-built) CMake as a build dependency,
     # which is a bit strange for a header-only library like Eigen...
     if LooseVersion(self.version) >= LooseVersion('3.3.4'):
         self.cfg['separate_build_dir'] = True
         # avoid that include files are installed into include/eigen3/Eigen, should be include/Eigen
         self.cfg.update('configopts', "-DINCLUDE_INSTALL_DIR=%s" % os.path.join(self.installdir, 'include'))
         CMakeMake.configure_step(self)
开发者ID:hpcugent,项目名称:easybuild-easyblocks,代码行数:10,代码来源:eigen.py

示例4: configure_step

    def configure_step(self):
        """Custom configuration for ROOT, add configure options."""

        # using ./configure is deprecated/broken in recent versions, need to use CMake instead
        if LooseVersion(self.version.lstrip('v')) >= LooseVersion('6.10'):
            if self.cfg['arch']:
                raise EasyBuildError("Specified value '%s' for 'arch' is not used, should not be set", self.cfg['arch'])

            cfitsio_root = get_software_root('CFITSIO')
            if cfitsio_root:
                self.cfg.update('configopts', '-DCFITSIO=%s' % cfitsio_root)

            fftw_root = get_software_root('FFTW')
            if fftw_root:
                self.cfg.update('configopts', '-Dbuiltin_fftw3=OFF -DFFTW_DIR=%s' % fftw_root)

            gsl_root = get_software_root('GSL')
            if gsl_root:
                self.cfg.update('configopts', '-DGSL_DIR=%s' % gsl_root)

            mesa_root = get_software_root('Mesa')
            if mesa_root:
                self.cfg.update('configopts', '-DDOPENGL_INCLUDE_DIR=%s' % os.path.join(mesa_root, 'include'))
                self.cfg.update('configopts', '-DOPENGL_gl_LIBRARY=%s' % os.path.join(mesa_root, 'lib', 'libGL.so'))

            python_root = get_software_root('Python')
            if python_root:
                pyshortver = '.'.join(get_software_version('Python').split('.')[:2])
                self.cfg.update('configopts', '-DPYTHON_EXECUTABLE=%s' % os.path.join(python_root, 'bin', 'python'))
                python_inc_dir = os.path.join(python_root, 'include', 'python%s' % pyshortver)
                self.cfg.update('configopts', '-DPYTHON_INCLUDE_DIR=%s' % python_inc_dir)
                python_lib = os.path.join(python_root, 'lib', 'libpython%s.so' % pyshortver)
                self.cfg.update('configopts', '-DPYTHON_LIBRARY=%s' % python_lib)

            if get_software_root('X11'):
                self.cfg.update('configopts', '-Dx11=ON')

            self.cfg['separate_build_dir'] = True
            CMakeMake.configure_step(self)
        else:
            if self.cfg['arch'] is None:
                raise EasyBuildError("No architecture specified to pass to configure script")

            self.cfg.update('configopts', "--etcdir=%s/etc/root " % self.installdir)

            cmd = "%s ./configure %s --prefix=%s %s" % (self.cfg['preconfigopts'],
                                                        self.cfg['arch'],
                                                        self.installdir,
                                                        self.cfg['configopts'])

            run_cmd(cmd, log_all=True, log_ok=True, simple=True)
开发者ID:Gregor-Mendel-Institute,项目名称:easybuild-easyblocks,代码行数:51,代码来源:root.py

示例5: extra_options

 def extra_options():
     extra_vars = [
         ('assertions', [True, "Enable assertions.  Helps to catch bugs in Clang.  (default: True)", CUSTOM]),
         ('build_targets', [["X86"], "Build targets for LLVM. Possible values: all, AArch64, ARM, CppBackend, Hexagon, " +
                            "Mips, MBlaze, MSP430, NVPTX, PowerPC, Sparc, SystemZ, X86, XCore (default: X86)", CUSTOM]),
     ]
     return CMakeMake.extra_options(extra_vars)
开发者ID:egouden,项目名称:easybuild-easyblocks,代码行数:7,代码来源:clang.py

示例6: install_step

    def install_step(self):
        """
        Install by copying files to install dir
        """
        if LooseVersion(self.version) >= LooseVersion('3.3.4'):
            CMakeMake.install_step(self)
        else:
            mkdir(os.path.join(self.installdir, 'include'), parents=True)
            for subdir in ['Eigen', 'unsupported']:
                srcdir = os.path.join(self.cfg['start_dir'], subdir)
                destdir = os.path.join(self.installdir, os.path.join('include', subdir))
                copy_dir(srcdir, destdir, ignore=shutil.ignore_patterns('CMakeLists.txt'))

            if LooseVersion(self.version) >= LooseVersion('3.0'):
                srcfile = os.path.join(self.cfg['start_dir'], 'signature_of_eigen3_matrix_library')
                destfile = os.path.join(self.installdir, 'include/signature_of_eigen3_matrix_library')
                copy_file(srcfile, destfile)
开发者ID:hpcugent,项目名称:easybuild-easyblocks,代码行数:17,代码来源:eigen.py

示例7: extra_options

 def extra_options():
     """
     Define extra options needed by Geant4
     """
     extra_vars = {
         'arch': [None, "Target architecture", CUSTOM],
     }
     return CMakeMake.extra_options(extra_vars)
开发者ID:Gregor-Mendel-Institute,项目名称:easybuild-easyblocks,代码行数:8,代码来源:root.py

示例8: extra_options

    def extra_options():
        """Extra easyconfig parameters specific to PSI."""

        extra_vars = {
            # always include running PSI unit tests (takes about 2h or less)
            'runtest': ["tests TESTFLAGS='-u -q'", "Run tests included with PSI, without interruption.", BUILD],
        }
        return CMakeMake.extra_options(extra_vars)
开发者ID:hpcugent,项目名称:easybuild-easyblocks,代码行数:8,代码来源:psi.py

示例9: extra_options

 def extra_options():
     """
     Define custom easyconfig parameters for SuperLU.
     """
     extra_vars = {
         'build_shared_libs': [False, "Build shared library (instead of static library)", CUSTOM],
     }
     return CMakeMake.extra_options(extra_vars)
开发者ID:ULHPC,项目名称:easybuild-easyblocks,代码行数:8,代码来源:superlu.py

示例10: extra_options

    def extra_options():
        extra_vars = [
            ('assertions', [True, "Enable assertions.  Helps to catch bugs in Clang.", CUSTOM]),
            ('build_targets', [["X86"], "Build targets for LLVM. Possible values: " + ', '.join(CLANG_TARGETS), CUSTOM]),
            ('bootstrap', [True, "Bootstrap Clang using GCC", CUSTOM]),
            ('usepolly', [False, "Build Clang with polly", CUSTOM]),
        ]

        return CMakeMake.extra_options(extra_vars)
开发者ID:ajdecon,项目名称:easybuild-easyblocks,代码行数:9,代码来源:clang.py

示例11: extra_options

 def extra_options():
     extra_vars = {
         'double_precision': [False, "Build with double precision enabled (-DGMX_DOUBLE=ON)", CUSTOM],
         'mpisuffix': ['_mpi', "Suffix to append to MPI-enabled executables (only for GROMACS < 4.6)", CUSTOM],
         'mpiexec': ['mpirun', "MPI executable to use when running tests", CUSTOM],
         'mpiexec_numproc_flag': ['-np', "Flag to introduce the number of MPI tasks when running tests", CUSTOM],
         'mpi_numprocs': [0, "Number of MPI tasks to use when running tests", CUSTOM],
     }
     return CMakeMake.extra_options(extra_vars)
开发者ID:ULHPC,项目名称:easybuild-easyblocks,代码行数:9,代码来源:gromacs.py

示例12: extra_options

 def extra_options():
     """Add extra config options specific to Trilinos."""
     extra_vars = {
         'shared_libs': [False, "Build shared libs; if False, build static libs", CUSTOM],
         'openmp': [True, "Enable OpenMP support", CUSTOM],
         'all_exts': [True, "Enable all Trilinos packages", CUSTOM],
         'skip_exts': [[], "List of Trilinos packages to skip", CUSTOM],
         'verbose': [False, "Configure for verbose output", CUSTOM],
     }
     return CMakeMake.extra_options(extra_vars)
开发者ID:FredHutch,项目名称:easybuild-easyblocks,代码行数:10,代码来源:trilinos.py

示例13: extra_options

    def extra_options():
        extra_vars = {
            'assertions': [True, "Enable assertions.  Helps to catch bugs in Clang.", CUSTOM],
            'build_targets': [["X86"], "Build targets for LLVM. Possible values: " + ', '.join(CLANG_TARGETS), CUSTOM],
            'bootstrap': [True, "Bootstrap Clang using GCC", CUSTOM],
            'usepolly': [False, "Build Clang with polly", CUSTOM],
            'static_analyzer': [True, "Install the static analyser of Clang", CUSTOM],
        }

        return CMakeMake.extra_options(extra_vars)
开发者ID:billy-mahimahi,项目名称:easybuild-easyblocks,代码行数:10,代码来源:clang.py

示例14: extra_options

 def extra_options():
     """Add extra config options specific to Trilinos."""
     extra_vars = [
                   ('shared_libs', [False, "Build shared libs; if False, build static libs. (default: False).", CUSTOM]),
                   ('openmp', [True, "Enable OpenMP support (default: True)", CUSTOM]),
                   ('all_exts', [True, "Enable all Trilinos packages (default: True)", CUSTOM]),
                   ('skip_exts', [[], "List of Trilinos packages to skip (default: [])", CUSTOM]),
                   ('verbose', [False, 'Configure for verbose output (default: False)', CUSTOM])
                  ]
     return CMakeMake.extra_options(extra_vars)
开发者ID:claczny,项目名称:easybuild-easyblocks,代码行数:10,代码来源:trilinos.py

示例15: extra_options

    def extra_options():
        extra_vars = [
            ('assertions', [True, "Enable assertions.  Helps to catch bugs in Clang.", CUSTOM]),
            ('build_targets', [["X86"], "Build targets for LLVM. Possible values: all, AArch64, ARM, CppBackend, Hexagon, " +
                               "Mips, MBlaze, MSP430, NVPTX, PowerPC, R600, Sparc, SystemZ, X86, XCore", CUSTOM]),
            ('bootstrap', [True, "Bootstrap Clang using GCC", CUSTOM]),
            ('usepolly', [False, "Build Clang with polly", CUSTOM]),
        ]

        return CMakeMake.extra_options(extra_vars)
开发者ID:lsuhpchelp,项目名称:easybuild_smic,代码行数:10,代码来源:clang.py


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