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.__oslabel:
                if hpccm.config.g_linux_version >= Version('24.0'):
                    self.__oslabel = 'ubuntu24.04'
                elif hpccm.config.g_linux_version >= Version('22.0'):
                    self.__oslabel = 'ubuntu22.04'
                elif hpccm.config.g_linux_version >= Version('20.0'):
                    self.__oslabel = 'ubuntu20.04'
                elif hpccm.config.g_linux_version >= Version('18.0'):
                    self.__oslabel = 'ubuntu18.04'
                else:
                    self.__oslabel = 'ubuntu16.04'
            if not self.__ospackages:
                self.__ospackages = ['bzip2', 'libnuma1', 'openssh-client',
                                     'tar', 'wget']

            self.__bashrc = '/etc/bash.bashrc'

        elif hpccm.config.g_linux_distro == linux_distro.CENTOS:
            if not self.__oslabel:
                if hpccm.config.g_linux_version >= Version('9.0'):
                    self.__oslabel = 'redhat9'
                elif hpccm.config.g_linux_version >= Version('8.0'):
                    if Version(self.__version) >= Version('2.10'):
                        self.__oslabel = 'redhat8'
                    else:
                        self.__oslabel = 'redhat8.0'
                else:
                    if Version(self.__version) >= Version('2.10'):
                        self.__oslabel = 'redhat7'
                    else:
                        self.__oslabel = 'redhat7.6'
            if not self.__ospackages:
                self.__ospackages = ['bzip2', 'numactl-libs',
                                     'openssh-clients', 'tar', 'wget']

            self.__bashrc = '/etc/bashrc'

        else: # pragma: no cover
            raise RuntimeError('Unknown Linux distribution')
Based on the Linux distribution, set values accordingly.  A user
           specified value overrides any defaults.
hpccm/building_blocks/hpcx.py