'Clean build path for project version
Ensure build path is clean for project version. Used to ensure stale
build checkouts for each project version are removed.'

def clean_build_path(self):

    try:
        path = self.get_build_path()
        if (path is not None):
            log.debug('Removing    build    path    {0}    for    {1}'.format(path, self))
            rmtree(path)
    except OSError:
        log.error('Build    path    cleanup    failed', exc_info=True)
