Skip to content
Snippets Groups Projects
inspector.py 1.32 KiB
Newer Older
  • Learn to ignore specific revisions
  • Easy Build's avatar
    Easy Build committed
    #!/usr/bin/env python
    #
    #  Copyright (C) 2015 IT4Innovations
    #  Lumir Jasiok
    #  lumir.jasiok@vsb.cz
    #  http://www.it4i.cz
    #
    #
    #
    
    """
    EasyBuild support for installing the Intel Inspector XE,
    implemented as an easyblock
    
    @author: Lumir Jasiok (IT4Innovations)
    """
    
    from easybuild.easyblocks.generic.intelbase import IntelBase
    
    
    class EB_Inspector(IntelBase):
        """
        Support for installing Intel Inspector XE
        """
    
        def sanity_check_step(self):
            """Custom sanity check paths for Inspector"""
    
            custom_paths = {
                'files': ["inspector_xe/bin64/inspxe-cl",
                          "inspector_xe/lib64/libinspxe_ism_core_3.32.so"],
                'dirs': ['inspector_xe/bin64', 'inspector_xe/lib64']
            }
    
            super(EB_Inspector, self).sanity_check_step(custom_paths=custom_paths)
    
        def make_module_req_guess(self):
            """
            A dictionary of possible directories to look for
            """
            guesses = super(EB_Inspector, self).make_module_req_guess()
    
            lib_path = 'inspector_xe/lib64'
            include_path = 'inspector_xe/include'
    
            guesses.update({
                'LD_LIBRARY_PATH': [lib_path],
                'LIBRARY_PATH': [lib_path],
                'CPATH': [include_path],
                'INCLUDE': [include_path],
                'PATH': ['inspector_xe/bin64'],
            })
    
            return guesses