def METHOD_NAME(self, base_dir, files):
    setuptools.command.sdist.sdist.METHOD_NAME(self, base_dir, files)
    for to, src in to_src:
        txt = get_and_replace(src, binary=True, version=version, extra_cmd="")
        dest = os.path.join(base_dir, to)
        # This is normally linked, so unlink before writing!
        os.unlink(dest)
        with open(dest, "wb") as f:
            f.write(txt)