def __distro(self):
        """Based on the Linux distribution, set values accordingly.  A user
        specified value overrides any defaults."""

        if hpccm.config.g_linux_distro == linux_distro.UBUNTU:
            if not self.__ospackages:
                self.__ospackages = ['libhwloc-dev', 'make']

        elif hpccm.config.g_linux_distro == linux_distro.CENTOS:
            if not self.__ospackages:
                self.__ospackages = ['hwloc-devel', 'make']

            if hpccm.config.g_linux_version >= Version('8.0'):
                # hwloc-devel is in the CentOS powertools repository
                self.__powertools = True
        else: # pragma: no cover
            raise RuntimeError('Unknown Linux distribution')

        if self.repository:
            self.__ospackages.extend(['ca-certificates', 'git'])
        else:
            self.__ospackages.extend(['gzip', 'tar', 'wget'])
Based on the Linux distribution, set values accordingly.  A user
        specified value overrides any defaults.
hpccm/building_blocks/kokkos.py