'Install setup for a package based on fetcher type.
:type name: string
:param name:  The filename to be munged
:type fetch_dir: string
:param fetch_dir: The destination path to be munged
:type install: boolean
:param install: Whether this is be called from the install path or not
:return: tuple with (name, fetch_dir)'

def install_pkg_setup(self, name, fetch_dir, install):

    if install:
        fetch_dir = os.path.join(fetch_dir, re.sub('/', '_', name))
    return (name, fetch_dir)
