def METHOD_NAME(self):
    """
    Setting up the env for the kernel building
    """
    smg = SoftwareManager()
    detected_distro = distro.detect()
    deps = ['gcc', 'make', 'automake', 'autoconf', 'time', 'bison', 'flex']
    if detected_distro.name in ['Ubuntu', 'debian']:
        linux_headers = 'linux-headers-%s' % os.uname()[2]
        deps.extend(['libpopt0', 'libc6', 'libc6-dev', 'libpopt-dev',
                     'libcap-ng0', 'libcap-ng-dev', 'elfutils', 'libelf1',
                     'libnuma-dev', 'libfuse-dev', 'libssl-dev', linux_headers])
    elif 'SuSE' in detected_distro.name:
        deps.extend(['libpopt0', 'glibc', 'glibc-devel',
                     'popt-devel', 'libcap2', 'libcap-devel', 'kernel-syms',
                     'libcap-ng-devel', 'openssl-devel', 'kernel-source'])
    elif detected_distro.name in ['centos', 'fedora', 'rhel']:
        deps.extend(['popt', 'glibc', 'glibc-devel', 'libcap-ng',
                     'libcap', 'libcap-devel', 'elfutils-libelf',
                     'elfutils-libelf-devel', 'openssl-devel',
                     'kernel-devel', 'kernel-headers'])
    for package in deps:
        if not smg.check_installed(package) and not smg.install(package):
            self.cancel('%s is needed for the test to be run' % package)