(self)
| 53 | |
| 54 | class CustomPythonBuild(build_py): |
| 55 | def pin_version(self) -> None: |
| 56 | path = os.path.join(self.build_lib, "mypy") |
| 57 | self.mkpath(path) |
| 58 | with open(os.path.join(path, "version.py"), "w") as stream: |
| 59 | stream.write(f'__version__ = "{version}"\n') |
| 60 | |
| 61 | def run(self) -> None: |
| 62 | self.execute(self.pin_version, ()) |