(self, base_dir: str, files: list[str])
| 97 | # on it, like a wheel) |
| 98 | class SDist(setuptools.command.sdist.sdist): |
| 99 | def make_release_tree(self, base_dir: str, files: list[str]) -> None: |
| 100 | super().make_release_tree(base_dir, files) |
| 101 | |
| 102 | for to, src in to_src: |
| 103 | txt = get_and_replace(src, binary=True, version=version, extra_cmd="") |
| 104 | |
| 105 | dest = Path(base_dir) / to |
| 106 | |
| 107 | # This is normally linked, so unlink before writing! |
| 108 | dest.unlink() |
| 109 | dest.write_bytes(txt) # type: ignore[arg-type] |
| 110 | |
| 111 | |
| 112 | # Remove the CMake install directory when done |
nothing calls this directly
no test coverage detected