def __download(self):
        """Construct the series of shell commands, i.e., fill in
           self.__commands"""

        # The download URL has the format contains vMAJOR.MINOR in the
        # path and the tarball contains MAJOR.MINOR.REVISION, so pull
        # apart the full version to get the MAJOR and MINOR components.
        match = re.match(r'(?P<major>\d+)\.(?P<minor>\d+)', self.__version)
        if Version(self.__version) >= Version('1.14'):
            major_minor = 'v{0}_{1}'.format(match.groupdict()['major'],
                                            match.groupdict()['minor'])
            tarball = 'hdf5-{}.tar.gz'.format(self.__version)
            self.__url = '{0}/{1}/v{2}/downloads/{3}'.format(
                self.__baseurl, major_minor, self.__version.replace('.', '_'),
                tarball)
        else:
            major_minor = '{0}.{1}'.format(match.groupdict()['major'],
                                           match.groupdict()['minor'])
            tarball = 'hdf5-{}.tar.bz2'.format(self.__version)
            self.__url = '{0}/hdf5-{1}/hdf5-{2}/src/{3}'.format(
                self.__baseurl, major_minor, self.__version, tarball)
Construct the series of shell commands, i.e., fill in
           self.__commands
hpccm/building_blocks/hdf5.py