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 Version(self.__version) <= Version('20.3'):
                self.__directory_string = 'Ubuntu-16.04'
                self.__package_string = 'Ubuntu-16.04'
                self.__url_string = 'Ubuntu16.04'
            elif hpccm.config.g_linux_version <= Version('18.04'):
                self.__directory_string = 'Ubuntu-18.04'
                self.__package_string = 'Ubuntu-18.04'
                self.__url_string = "ACfL"
            else:
                self.__directory_string = 'Ubuntu-20.04'
                self.__package_string = 'Ubuntu-20.04'
                self.__url_string = "ACfL"

            self.__installer_template = 'arm-compiler-for-linux_{{}}_{0}.sh'.format(self.__directory_string)
            if  hpccm.config.g_linux_version >= Version('22.04'):
                python2_package = "python2"
            else:
                python2_package = "python"
            if not self.__ospackages:
                self.__ospackages = ['libc6-dev', 'lmod', python2_package, 'tar',
                                     'tcl', 'wget']

        elif hpccm.config.g_linux_distro == linux_distro.CENTOS:
            if hpccm.config.g_linux_version >= Version('8.0'):
                self.__directory_string = 'RHEL-8'
                self.__package_string = 'RHEL-8'
                if Version(self.__version) <= Version('20.3'):
                    self.__url_string = 'RHEL8'
                else:
                    self.__url_string = 'ACfL'
            else:
                self.__directory_string = 'RHEL-7'
                self.__package_string = 'RHEL-7'
                if Version(self.__version) <= Version('20.3'):
                    self.__url_string = 'RHEL7'
                else:
                    self.__url_string = 'ACfL'

            self.__installer_template = 'arm-compiler-for-linux_{{}}_{0}.sh'.format(self.__directory_string)

            if not self.__ospackages:
                self.__ospackages = ['Lmod', 'glibc-devel', 'tar', 'wget']

        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/arm_allinea_studio.py